OFFSET
3,1
COMMENTS
a(22) = 683 is the first repeated term in this sequence. Note that a(n+2) = A129738(n), for n < 20.
LINKS
Amiram Eldar, Table of n, a(n) for n = 3..1122 (terms 3..988 from Charles R Greathouse IV)
EXAMPLE
a(6) = 7 because A001045(6) = 21 = 3*7.
MATHEMATICA
FactorInteger[#][[-1, 1]] & /@ Take[#, -(Length@ # - 3)] &@ CoefficientList[Series[x/(1 - x - 2 x^2), {x, 0, 45}], x] (* Michael De Vlieger, Apr 04 2016, after Robert G. Wilson v at A001045 *)
PROG
(PARI) a001045(n) = (2^n - (-1)^n) / 3;
a(n) = vecmax(factor(a001045(n))[, 1]);
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Apr 03 2016
STATUS
approved