(Translated by https://www.hiragana.jp/)
A213731 - OEIS
login
A213731
a(n)=0 if n is in A055938, a(n)=1 if n is in A179016, otherwise (i.e., n is in A213717), a(n)=2.
7
1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 2, 1, 0, 0, 0, 1, 1, 0, 2, 1, 0, 0, 2, 1, 0, 2, 1, 0, 0, 0, 0, 1, 1, 0, 2, 1, 0, 0, 2, 1, 0, 2, 1, 0, 0, 0, 1, 2, 0, 1, 2, 0, 0, 1, 2, 0, 2, 1, 0, 0, 0, 0, 0, 1, 1, 0, 2, 1, 0, 0, 2, 1, 0, 2, 1, 0, 0, 0, 1, 2, 0, 1, 2, 0, 0, 1, 2
OFFSET
0,11
COMMENTS
Those natural numbers n for which a(n)=1 belong to the infinite trunk of "Carl White's beanstalk" (see A179016), while the numbers n for which a(n)=0, are the leaves (terminal, dead-end nodes) of the same beanstalk, while those n for which a(n)=2, are non-terminal nodes in its finite tendrils.
LINKS
FORMULA
a(n) = 2*A079559(n) - A213719(n).
PROG
(Scheme): (define (A213731 n) (+ (A079559 n) (- (A079559 n) (A213719 n))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 01 2012
STATUS
approved