OFFSET
0,10
COMMENTS
Subtract each digit of the counting numbers from its rank.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
EXAMPLE
The sequence of digits of the counting numbers is
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0...
The 15th term, for instance, is a 2. Thus 15-2=13 is the 15th term of this sequence.
Next one is a 1, thus 16 (the rank) - 1 (the 16th digit of the decimal expansion of the counting numbers) = 15, which is the 16th term of this sequence.
Next one is 17-3=14
MATHEMATICA
With[{c=Flatten[IntegerDigits/@Range[70]]}, #[[1]]-#[[2]]&/@Partition[ Riffle[ Range[Length[c]], c], 2]] (* Harvey P. Dale, Aug 07 2019 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Alexandre Wajnberg, Sep 30 2004
EXTENSIONS
More terms from Stacy Hawthorne (shawtho1(AT)ashland.edu), Jan 12 2006
STATUS
approved