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.

A039972 An example of a d-perfect sequence: a(n) = A007317(n) mod 3.

Original entry on oeis.org

1, 2, 2, 0, 0, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 1, 1, 0, 0, 1, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 1, 1, 0, 0, 1, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 0, 0, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Offset: 1

Views

Author

Keywords

Comments

Odd bisection seems to be A006996. See also A039969. - Antti Karttunen, Aug 15 2017

Crossrefs

Programs

  • PARI
    write_to_bfile(start_offset,vec,bfilename) = { for(n=1, length(vec), write(bfilename, (n+start_offset)-1, " ", vec[n])); }
    A039972_as_a_vector(size)= { my(A=vector(size)); for(j=1, size, A[j]=1+sum(k=1, j-1, A[k]*A[j-k])); apply(n->(n%3),A); }; \\ After Michael Somos' May 23 2005 code for A007317 and Christian G. Bower's formula for A039972.
    write_to_bfile(1,A039972_as_a_vector(6561),"b039972_upto6561.txt"); \\ Antti Karttunen, Aug 15 2017

Formula

a(n) = A007317(n) mod 3. - Christian G. Bower, Jun 12 2005

Extensions

More terms from Christian G. Bower, Jun 12 2005
Formula added to the name by Antti Karttunen, Aug 15 2017