cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A050604 Column 3 of A050600: a(n) = add1c(n,3).

Original entry on oeis.org

1, 3, 2, 2, 1, 4, 3, 3, 1, 3, 2, 2, 1, 5, 4, 4, 1, 3, 2, 2, 1, 4, 3, 3, 1, 3, 2, 2, 1, 6, 5, 5, 1, 3, 2, 2, 1, 4, 3, 3, 1, 3, 2, 2, 1, 5, 4, 4, 1, 3, 2, 2, 1, 4, 3, 3, 1, 3, 2, 2, 1, 7, 6, 6, 1, 3, 2, 2, 1, 4, 3, 3, 1, 3, 2, 2, 1, 5, 4, 4, 1
Offset: 0

Views

Author

Antti Karttunen, Jun 22 1999

Keywords

Comments

Image of A001511 under the map x -> {1,x+2,x+1,x+1}. - Charlie Neder, Feb 25 2019

Crossrefs

Programs

  • PARI
    A050604(n)=if((n=divrem(n,4))[2],valuation(n[1]+1,2)+2+(n[2]<2),1) \\ M. F. Hasler, Feb 25 2019

Formula

a(4n) = 1, a(4n+1)-2 = a(4n+2)-1 = a(4n+3)-1 = A001511(n) for all n >= 0. - M. F. Hasler, Feb 25 2019