[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
Revision History for A001175 (Underlined text is an addition; strikethrough text is a deletion.)

Showing entries 1-10 | older changes
A001175 Pisano periods (or Pisano numbers): period of Fibonacci numbers mod n.
(history; published version)
#248 by Charles R Greathouse IV at Mon Jul 08 12:50:02 EDT 2024
STATUS

editing

approved

#247 by Charles R Greathouse IV at Mon Jul 08 12:49:48 EDT 2024
PROG

(PARI) minWSS=2^64; \\ PrimeGrid search

(PARI) fibmod(n, m)=((Mod([1, 1; 1, 0], m))^n)[1, 2]

entry(n)=if(n==1, return(1)); my(f=factor(n), v); v=vector(#f~, i, if(f[i, 1]>9.2e18]>=minWSS, entryp(f[i, 1]^f[i, 2]), entryp(f[i, 1])*f[i, 1]^(f[i, 2] - 1))); if(f[1, 1]==2&&f[1, 2]>1, v[1]=3<<max(f[1, 2]-2, 1)); lcm(v)

a(n)=if(n==1, return(1)); my(k=entry(n)); forstep(i=k, n^2, k, if(fibmod(i-1, n)==1, return(i))) \\ Charles R Greathouse IV, Feb 13 2014; updated Dec 14 2016; updated Aug 24 2021; updated Jul 08 2024

STATUS

approved

editing

#246 by Alois P. Heinz at Fri Nov 03 12:12:18 EDT 2023
STATUS

proposed

approved

#245 by A.H.M. Smeets at Fri Nov 03 09:38:32 EDT 2023
STATUS

editing

proposed

Discussion
Fri Nov 03 12:12
Alois P. Heinz: ok, thanks ...
#244 by A.H.M. Smeets at Fri Nov 03 09:38:04 EDT 2023
FORMULA

Observed: a(p^2) = p*a(p) for all p <= 5*10^5, so a(n) = lcm(a(p1)*p1^(e1-1), ..., a(pk)*pk^(ek-1), where n = p1^e1*...*pk^ek is the prime factorization of n. - A.H.M. Smeets, Oct 30 2023

Discussion
Fri Nov 03 09:38
A.H.M. Smeets: deleted it
#243 by Kevin Ryde at Tue Oct 31 01:09:09 EDT 2023
STATUS

proposed

editing

Discussion
Fri Nov 03 09:37
A.H.M. Smeets: I agree
#242 by Jon E. Schoenfield at Mon Oct 30 23:48:24 EDT 2023
STATUS

editing

proposed

Discussion
Tue Oct 31 01:09
Kevin Ryde: The "Observed" is known statements and over half of it is in existing formulas.  Set back to editing accordingly.
#241 by Jon E. Schoenfield at Mon Oct 30 23:48:12 EDT 2023
FORMULA

Observed: a(p^2) = p*a(p) for all p <= 5*10^5, so a(n) = lcm(a(p1)*p1^(e1-1), ..., a(pk)*pk^(ek-1), where n = p1^e1...*...*pk^ek is the prime factorization of n. - A.H.M. Smeets, Oct 30 2023

STATUS

proposed

editing

#240 by Michel Marcus at Mon Oct 30 05:16:23 EDT 2023
STATUS

editing

proposed

Discussion
Mon Oct 30 05:17
Michel Marcus: please pay attention to the result after editing
06:45
Kevin Ryde: I was unclear when I said "various n".  What I meant was various n.  Factoring turns about n = x*y*z of work into instead about x+y+z of work.  Various n with not-terribly-big factors are handled hugely faster by using Wall's result (if I'm right it's Wall's!).
06:52
Kevin Ryde: About 10^5, I saw a paper by Elsenhans and Jahnel suggesting Wall was at primes < 10^4 in 1960, and the state of the art in 2004 was primes < 10^14.  The present state is a worthwhile thing to refer to, but the repeat of the preceding formula has to go.
#239 by Michel Marcus at Mon Oct 30 05:16:15 EDT 2023
FORMULA

Observed: a(p^2) = p*a(p) for all p <= 5*10^5, so a(n) = lcm(a(p1)*p1^(e1-1), ..., a(pk)*pk^(ek-1), where n = p1^e1...pk^ek is the prime factorization of n. _. - _A.H.M. Smeets_, Oct 30 2023

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 28 11:18 EDT 2024. Contains 375496 sequences. (Running on oeis4.)