OFFSET
1,1
COMMENTS
Or, sums of four powers of 5.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
The author would like a formula for the n-th term.
EXAMPLE
In base 5 the numbers are 4, 13, 31, 40, 103, 112, 121, 130, 202, 211, 220, 301, 310, 400, 1003, ...
MAPLE
for n from 0 to 2500 do if coeff(series(add(x^(5^i), i=0..4)^4, x, 2500), x, n)<>0 then printf(`%d, `, n); fi:od:
MATHEMATICA
Select[Range[1000], Total[IntegerDigits[#, 5]]==4&] (* Harvey P. Dale, Jul 13 2023 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Sergi Adamchuk (adamchuk(AT)gmail.com), Mar 15 2005
EXTENSIONS
More terms from Joshua Zucker, May 15 2006
STATUS
approved
