Skip to content

[250515] 피보나치 수 3(dp+pisanoPeriod), 골드 II - #274

Open
hcu55 wants to merge 1 commit into
mainfrom
hcu55/#269
Open

[250515] 피보나치 수 3(dp+pisanoPeriod), 골드 II#274
hcu55 wants to merge 1 commit into
mainfrom
hcu55/#269

Conversation

@hcu55

@hcu55 hcu55 commented May 15, 2025

Copy link
Copy Markdown
Collaborator

피사노 주기(Pisano Period)를 알아야 함

피사노 주기란?

  • 피보나치 수열을 어떤 수 M으로 나눈 나머지 수열은 언젠가는 반복되기 시작한다. 이 반복되는 최초의 주기 길이를 피사노 주기라고 부름

왜 1,000,000의 피사노 주기는 1,500,000인가요?

  • 피사노 주기의 길이는 대략 6 * m 이며, 10^k일 경우 15 × 10^{k-1}이 됨
  • 1,000,000 = 10^6 → 15 × 10^5 = 1,500,000

피사노 주기(Pisano Period)를 알아야 함

#### 피사노 주기란?
- 피보나치 수열을 어떤 수 M으로 나눈 나머지 수열은 언젠가는 반복되기 시작한다. 이 반복되는 최초의 주기 길이를 피사노 주기라고 부름

#### 왜 1,000,000의 피사노 주기는 1,500,000인가요?
- 피사노 주기의 길이는 대략 6 * m 이며, 10^k일 경우 15 × 10^{k-1}이 됨
- 1,000,000 = 10^6 → 15 × 10^5 = 1,500,000
@hcu55
hcu55 requested review from qbobl5 and rlfrkdms1 May 15, 2025 14:25
@hcu55 hcu55 self-assigned this May 15, 2025
@hcu55 hcu55 linked an issue May 15, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[WEEK16] [Gold2] 피보나치 수 3

2 participants