A343184 Positions of records in A001178.
1, 2, 127, 509, 1019, 2039, 4079, 16384, 32768, 65536, 131072, 262144, 524287, 1048573, 6291437
Offset: 1
Programs
-
Mathematica
Block[{pi, k, s}, pi[1] = 1; pi[n_] := For[k = 1, True, k++, If[Mod[Fibonacci[k], n] == 0 && Mod[Fibonacci[k + 1], n] == 1, Return[k]]]; s = Array[Length[FixedPointList[pi, #]] - 2 &, 2^11]; Map[FirstPosition[s, #][[1]] &, Union@ FoldList[Max, s]] ] (* Michael De Vlieger, May 16 2021, after Jean-François Alcover at A001178 *)
Extensions
a(1)-a(12) from Felix Lans and confirmed by Rémy Sigrist, May 16 2021; a(13) and a(14) from Rémy Sigrist, May 16 2021.
a(15) from Chai Wah Wu, Mar 01 2022
Comments