login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A060713 Smallest number whose digit sum is 5^n. 1
1, 5, 799, 89999999999999, 4999999999999999999999999999999999999999999999999999999999999999999999 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Harry J. Smith, Table of n, a(n) for n = 0..5

MATHEMATICA

Do[ a = {}; While[ Apply[ Plus, a ] + 9 < 5^n, a = Append[ a, 9 ] ]; If[ Apply[ Plus, a ] != 5^n, a = Prepend[ a, 5^n - Apply[ Plus, a ] ] ]; Print[ FromDigits[ a ] ], {n, 1, 4} ]

PROG

(PARI) { for (n=0, 5, s=5^n; x=s\9; d=s - 9*x; write("b060713.txt", n, " ", (d+1)*10^x - 1); ) } \\ Harry J. Smith, Jul 10 2009

CROSSREFS

Cf. A060712.

Sequence in context: A299396 A299226 A300038 * A198402 A214450 A332185

Adjacent sequences:  A060710 A060711 A060712 * A060714 A060715 A060716

KEYWORD

nonn,base

AUTHOR

Robert G. Wilson v, Apr 21 2001

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 8 13:59 EST 2021. Contains 341949 sequences. (Running on oeis4.)