login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A255336
a(n) = A005811(A255056(n)); After the initial zero, the first differences of A255056.
4
0, 2, 2, 2, 4, 2, 2, 4, 4, 4, 2, 2, 2, 4, 6, 4, 4, 4, 4, 2, 2, 2, 4, 6, 4, 6, 6, 4, 2, 4, 6, 4, 4, 4, 4, 2, 2, 2, 4, 6, 4, 6, 4, 4, 6, 6, 6, 6, 6, 4, 2, 4, 6, 4, 6, 6, 4, 2, 4, 6, 4, 4, 4, 4, 2, 2, 2, 4, 6, 4, 6, 4, 4, 6, 6, 6, 6, 4, 4, 6, 6, 6, 8, 6, 6, 6, 6, 6, 6, 4, 2, 4, 6, 4, 6, 4, 4, 6, 6, 6, 6, 6, 4, 2, 4, 6, 4, 6, 6, 4, 2, 4, 6, 4, 4, 4, 4, 2, 2
OFFSET
0,2
COMMENTS
First differences of A255056, shifted once right (prepended with zero).
LINKS
FORMULA
a(n) = A005811(A255056(n)).
a(0) = 0; and for n >= 1: a(n) = A255056(n) - A255056(n-1).
a(n) = 2*A255337(n).
PROG
(Scheme, two versions)
(define (A255336 n) (A005811 (A255056 n)))
(define (A255336 n) (if (zero? n) n (- (A255056 n) (A255056 (- n 1)))))
CROSSREFS
First differences of A255056.
Terms of A255337 doubled.
Cf. A005811.
Analogous sequence: A213712.
Sequence in context: A066671 A159802 A329586 * A292929 A049627 A278223
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 21 2015
STATUS
approved