[250515] 피보나치 수 3(dp+pisanoPeriod), 골드 II - #274
Open
hcu55 wants to merge 1 commit into
Open
Conversation
피사노 주기(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
qbobl5
approved these changes
Jun 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
피사노 주기(Pisano Period)를 알아야 함
피사노 주기란?
왜 1,000,000의 피사노 주기는 1,500,000인가요?