|
Search: id:A060713
|
|
|
| A060713 |
|
Smallest number whose digit sum is 5^n. |
|
+0 1
|
|
| 1, 5, 799, 89999999999999, 4999999999999999999999999999999999999999999999999999999999999999999999
(list; graph; listen)
|
|
|
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} ]
|
|
PROGRAM
|
(PARI) { for (n=0, 5, s=5^n; x=s\9; d=s - 9*x; write("b060713.txt", n, " ", (d+1)*10^x - 1); ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Jul 10 2009]
|
|
CROSSREFS
|
Sequence in context: A071772 A157281 A051304 this_sequence A085706 A135084 A094630
Adjacent sequences: A060710 A060711 A060712 this_sequence A060714 A060715 A060716
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Robert G. Wilson v (rgwv(AT)rgwv.com), Apr 21 2001
|
|
|
Search completed in 0.002 seconds
|