A181178 n-th zerofree positive number with digital sum n.
1, 11, 21, 31, 41, 51, 61, 71, 81, 118, 137, 165, 193, 257, 294, 376, 467, 567, 676, 785, 894, 1399, 1778, 1986, 2887, 3869, 4869, 5878, 6887, 7896, 8959, 9968, 18798, 26998, 35999, 45999, 56899, 66989, 76998, 87799
Offset: 1
Examples
a(1) = 1 because 1 is the 1st number with digital sum 1; a(2) = 11 because 11 is the 2nd number with digital sum 2 {2,11}; a(3) = 21 because 21 is the 3rd (zerofree positive) number with digital sum 3 {3,12,21,111}; a(4) = 31 because 31 is the 4th (zerofree positive) number with digital sum 4 {4,13,22,31,112,121,211,1111}.
Links
- Zak Seidov, Table of n, a(n) for n = 1..70
Programs
-
Mathematica
nn=50; c=Table[0,{nn}]; t=c; cnt=0; n=0; While[cnt
Comments