A055812 a(n) and floor(a(n)/5) are both squares; i.e., squares which remain squares when written in base 5 and last digit is removed.
0, 1, 4, 9, 49, 81, 324, 2209, 15129, 25921, 103684, 710649, 4870849, 8346321, 33385284, 228826129, 1568397609, 2687489281, 10749957124, 73681302249, 505019158609, 865363202001, 3461452808004
Offset: 1
Examples
a(4) = 49 because 49 = 7^2 = 144 base 5 and 14 base 5 = 9 = 3^2.
Crossrefs
Programs
-
PARI
b=5;for(n=1,2e9,issquare(n^2\b) && print1(n^2,",")) \\ M. F. Hasler, Jan 15 2012
Formula
Empirical g.f.: -x^2*(9*x^11 +49*x^10 +324*x^9 +81*x^8 -698*x^7 -698*x^6 -968*x^5 -242*x^4 +49*x^3 +9*x^2 +4*x +1) / ((x -1)*(x +1)*(x^2 -4*x -1)*(x^2 +1)*(x^2 +4*x -1)*(x^4 +18*x^2 +1)). - Colin Barker, Sep 15 2014
Extensions
More terms added and offset changed to 1 by M. F. Hasler, Jan 15 2012
Comments