login
A140134
a(n)=2a(n-1) but when sum of digits of 2a(n-1) is greater than 9 take a(n) = largest number < 2a(n-1) which has sum of digits = 9.
0
1, 2, 4, 8, 16, 32, 63, 126, 252, 504, 1008, 2016, 4032, 8001, 16002, 32004, 63000, 126000, 252000, 504000, 1008000, 2016000, 4032000, 8001000, 16002000, 32004000, 63000000, 126000000, 252000000, 504000000, 1008000000, 2016000000
OFFSET
0,2
EXAMPLE
a(12)=4032; 2*4032 = 8064; digit sum is 18; decrease until we get a number with digit sum 9, which is 8001; so a(13) = 8001. - From N. J. A. Sloane, Oct 08 2012
CROSSREFS
Cf. A062259.
Sequence in context: A251740 A251748 A251762 * A243084 A049886 A128901
KEYWORD
nonn,base
AUTHOR
Paul Curtz, Jun 15 2008
EXTENSIONS
Keyword base added by Reinhard Zumkeller, Feb 25 2010
STATUS
approved