login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


A147829
Minimum number k for which the digital sum of k*n is 9*n.
2
0, 9, 99, 333, 7497, 99999, 333333, 2842857, 49999986, 111111111, 9999999999, 99909090909, 249999999999, 2299923076923, 21427857142857, 333333333333333, 2499999999999993, 11764705294117647, 111111111111111111, 1526315788947368421
OFFSET
0,2
MAPLE
P:=proc(i) local j, k, n, ok, w; for n from 0 by 1 to i do j:=-1; ok:=1; while ok=1 do j:=j+1; w:=0; k:=n*j; while k>0 do w:=w+k-(trunc(k/10)*10); k:=trunc(k/10); od; if w=9*n then ok:=0; print(j); fi; od; od; end: P(100);
PROG
(PARI) a(n) = {my(k = 0); while (sumdigits(k*n) != 9*n, k++); k; }; \\ Michel Marcus, Mar 21 2016
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
EXTENSIONS
Edited by Charles R Greathouse IV, Nov 01 2009
a(7)-a(12) from Donovan Johnson, Sep 16 2012
a(13)-a(19) from Chai Wah Wu, Mar 20 2016
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 21 22:57 EDT 2024. Contains 376090 sequences. (Running on oeis4.)