login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A278216 Number of children node n has in the tree defined by edge relation A255131(child) = parent, "the least squares beanstalk". 8
4, 0, 0, 4, 0, 0, 1, 0, 3, 1, 0, 3, 0, 0, 0, 2, 2, 0, 2, 2, 0, 1, 0, 0, 4, 0, 0, 3, 0, 0, 2, 0, 2, 0, 0, 4, 0, 0, 1, 2, 1, 1, 0, 3, 0, 1, 0, 0, 3, 0, 1, 3, 0, 1, 1, 0, 3, 0, 0, 3, 0, 0, 0, 3, 1, 0, 2, 2, 0, 0, 1, 1, 2, 1, 1, 2, 0, 0, 1, 0, 3, 1, 0, 3, 0, 1, 0, 1, 3, 0, 1, 2, 0, 1, 0, 1, 2, 0, 0, 4, 0, 0, 2, 0, 2, 1, 0, 3, 1, 0, 0, 2, 1, 0, 1, 3, 0, 1, 0, 0, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Antti Karttunen, Table of n, a(n) for n = 0..10000

FORMULA

a(n) = Sum_{i=0..4} [A002828(n+i) = i]. (Here [ ] is Iverson-bracket, giving as its result 1 only if A002828(n+i) is i, otherwise zero.)

EXAMPLE

a(0) = 4 as 0 - A002828(0) = 0, 1 - A002828(1) = 0, 2 - A002828(2) = 0 and 3 - A002828(3) = 0. (But 4 - A002828(4) = 3). Note that 0 is only number which is its own child as 0 - A002828(0) = 0.

PROG

(Scheme) (define (A278216 n) (let loop ((s 0) (k (+ 4 n))) (if (< k n) s (loop (+ s (if (= n (A255131 k)) 1 0)) (- k 1)))))

CROSSREFS

Cf. A002828, A255131, A276573.

Cf. A278490 (positions of zeros), A278489 (positions of nonzeros), A278491 (positions of 4's).

Sequence in context: A306770 A308278 A308277 * A036480 A035639 A284689

Adjacent sequences:  A278213 A278214 A278215 * A278217 A278218 A278219

KEYWORD

nonn

AUTHOR

Antti Karttunen, Nov 25 2016

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 25 13:26 EST 2021. Contains 341609 sequences. (Running on oeis4.)