OFFSET
1,2
COMMENTS
Numbers of the form 2^i * 5^j for 0 <= i <= 2 and j >= 0.
REFERENCES
Trygve Nagell, Introduction to Number Theory. New York: Wiley, 1951, pp. 164-168.
LINKS
Eric M. Schmidt, Table of n, a(n) for n = 1..500
Eric Weisstein, Cyclotomic Polynomial.
Index entries for linear recurrences with constant coefficients, signature (0,0,5).
FORMULA
a(3j + i) = 2^(i-1)*5^j for i = 1,2,3 and j >= 0.
a(n) = 5*a(n-3). G.f.: -x*(4*x^2+2*x+1) / (5*x^3-1). - Colin Barker, Aug 01 2014
EXAMPLE
The 4th cyclotomic polynomial x^2 + 1 considered modulo 5 has a root x = 2, so 4 is in the sequence.
PROG
(Sage) def A245478(n) : return 2^((n-1)%3)*5^((n-1)//3)
(PARI) for(n=1, 10^6, if(#polrootsmod(polcyclo(n), 5), print1(n, ", "))) /* by definition; rather inefficient. - Joerg Arndt, Jul 28 2014 */
(PARI) is(n)=n%8 && 2^valuation(n, 2)*5^valuation(n, 5)==n \\ Charles R Greathouse IV, Jul 29 2014
(PARI) Vec(-x*(4*x^2+2*x+1)/(5*x^3-1) + O(x^100)) \\ Colin Barker, Aug 01 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric M. Schmidt, Jul 23 2014
STATUS
approved