A272636 a(0)=0, a(1)=1; thereafter a(n) = squarefree part of a(n-1)+a(n-2).
0, 1, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7, 1, 2, 3, 5, 2, 7
Offset: 0
Keywords
Links
- Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 1).
Crossrefs
Programs
-
Mathematica
{0, 1}~Join~LinearRecurrence[{0, 0, 0, 0, 0, 1}, {1, 2, 3, 5, 2, 7}, 120] (* Jean-François Alcover, Nov 16 2019 *)
-
Python
from sympy.ntheory.factor_ import core l=[0, 1] for n in range(2, 101): l.append(core(l[n - 1] + l[n - 2])) print(l) # Indranil Ghosh, Jun 03 2017
Comments