A104264 Number of n-digit squares with no zero digits.
3, 6, 19, 44, 136, 376, 1061, 2985, 8431, 24009, 67983, 193359, 549697, 1563545, 4446173, 12650545, 35999714, 102439796, 291532841, 829634988, 2360947327, 6719171580, 19122499510, 54423038535, 154888366195
Offset: 1
Examples
a(3) = #{121, 144, 169, 196, 225, 256, 289, 324, 361, 441, 484, 529, 576, 625, 676, 729, 784, 841, 961} = 19.
Programs
-
Python
def aupton(terms): c, k, kk = [0 for i in range(terms)], 1, 1 while kk < 10**terms: s = str(kk) c[len(s)-1], k, kk = c[len(s)-1] + (s.count('0')==0), k+1, kk + 2*k + 1 return c print(aupton(14)) # Michael S. Branicky, Mar 06 2021
Extensions
a(14)-a(18) from Donovan Johnson, Nov 05 2009
a(19)-a(21) from Donovan Johnson, Mar 23 2011
a(22)-a(25) from Donovan Johnson, Jan 29 2013
Comments