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!)
A253786 a(3n) = 0, a(3n+1) = 0, a(3n+2) = 1 + a(n+1). 9
0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 0, 0, 3, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 0, 0, 4, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 0, 0, 3, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 0, 0, 3, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 0, 0, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,6

COMMENTS

For n >= 1, a(n) gives the distance of n in square array A191450 from its leftmost column.

LINKS

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

FORMULA

a(3n) = 0, a(3n+1) = 0, a(3n+2) = 1 + a(n+1).

Other identities and observations. For all n >= 1:

a(n) = A254046(n)-1.

a(n) <= A254045(n) <= A253894(n).

a(3n-1) = A254046(n). - Cyril Damamme, Aug 04 2015

a(n) = A007949(2n-1), i.e., the 3-adic valuation of 2n-1. - Cyril Damamme, Aug 04 2015

From Antti Karttunen, Sep 12 2017: (Start)

For all n >= 1:

a(n) = A007814(A064216(n)) = A007814(A254104(n)) = A135523(A245611(n)).

a(A048673(n)) = a(A254103(n)) = A007814(n).

a(A244154(n)) = A007814(1+n).

a(A245612(n)) = A135523(n).

(End)

PROG

(Scheme, with memoization-macro definec)

(definec (A253786 n) (if (= 2 (modulo n 3)) (+ 1 (A253786 (/ (+ 1 n) 3))) 0))

CROSSREFS

One less than A254046.

Cf. A007814, A007949, A048673, A064216, A135523, A191450 (A254051), A253887, A253894, A254045, A254103, A254104, A245611.

Sequence in context: A191265 A320003 A291749 * A078595 A301989 A216513

Adjacent sequences:  A253783 A253784 A253785 * A253787 A253788 A253789

KEYWORD

nonn

AUTHOR

Antti Karttunen, Jan 22 2015

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 March 8 13:59 EST 2021. Contains 341949 sequences. (Running on oeis4.)