login
A255120
After the first zero, numbers from 0 to A255071(n)-1 followed by numbers from 0 to A255071(n+1)-1, etc.
3
0, 0, 0, 1, 0, 1, 2, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 5, 6, 7, 8, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19
OFFSET
0,7
COMMENTS
An auxiliary sequence for computing A255122 and A255056.
LINKS
FORMULA
a(0) = 0; and for n >= 1, a(n) = n - A255062(A255121(n)).
PROG
(Scheme) (define (A255120 n) (if (zero? n) n (- n (A255062 (A255121 n)))))
CROSSREFS
Similar sequence: A218601.
Sequence in context: A273294 A053186 A066628 * A218601 A350603 A262678
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 14 2015
STATUS
approved