A178094 a(1)=a(2)=1; thereafter a(n) = lpf(a(n-1)+a(n-2)), where lpf = "least prime factor".
1, 1, 2, 3, 5, 2, 7, 3, 2, 5, 7, 2, 3, 5, 2, 7, 3, 2, 5, 7, 2, 3, 5, 2, 7, 3, 2, 5, 7, 2, 3, 5, 2, 7, 3, 2, 5, 7, 2, 3, 5, 2, 7, 3, 2, 5, 7, 2, 3, 5, 2, 7, 3, 2, 5, 7, 2, 3, 5, 2, 7, 3, 2, 5, 7, 2, 3, 5, 2, 7, 3, 2, 5, 7, 2, 3, 5, 2, 7, 3, 2, 5, 7, 2, 3, 5, 2, 7, 3, 2, 5, 7, 2, 3, 5, 2, 7, 3, 2, 5, 7, 2, 3, 5, 2, 7, 3, 2, 5, 7
Offset: 1
Keywords
Programs
-
Mathematica
nxt[{a_,b_}]:={b,FactorInteger[a+b][[1,1]]}; NestList[nxt,{1,1},110][[;;,1]] (* or *) PadRight[ {1,1},110,{5,7,2,3,5,2,7,3,2}] (* Harvey P. Dale, May 29 2023 *)
Comments