OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..3000
EXAMPLE
194 in base 5 is 1234.
1138 in base 5 is 14023; 14510 in base 5 is 431020. - Harvey P. Dale, Jul 26 2018
MATHEMATICA
Union[ Map[ Plus@@(Array[ (5^#)&, Length[ # ], 0 ]*#)&, Flatten[ Table[ Permutations[ Join[ Range[ 5-1 ], Array[ 0&, k ] ] ], {k, 0, 1} ], 1 ] ] ]
Table[FromDigits[#, 5]&/@Permutations[PadRight[{1, 2, 3, 4}, n, 0]], {n, 4, 5}]//Flatten//Union (* Harvey P. Dale, Jul 26 2018 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved