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.

A278491 After a(0)=0, numbers n such that (A002828(1+n) = 1) and (A002828(4+n) = 4).

Original entry on oeis.org

0, 3, 24, 35, 99, 120, 195, 323, 440, 483, 675, 728, 899, 1155, 1368, 1443, 1763, 1848, 2115, 2499, 2808, 2915, 3363, 3480, 3843, 4355, 4760, 4899, 5475, 5624, 6083, 6723, 7224, 7395, 8099, 8280, 8835, 9603, 10200, 10403, 11235, 11448, 12099, 12995, 13688, 13923, 14883, 15128, 15875, 16899, 17688, 17955, 19043, 19320, 20163
Offset: 0

Views

Author

Antti Karttunen, Nov 26 2016

Keywords

Comments

The definition implies that after 0 these are also all numbers n such that (A002828(1+n) = 1), (A002828(2+n) = 2), (A002828(3+n) = 3) and (A002828(4+n) = 4).
Because A002828 obtains value 1 only at squares, every term must be one less than a square.
In the terms of tree defined by edge relation A255131(child) = parent, ("the least squares beanstalk"), these numbers are the nodes with four children (maximum possible).
Either of the above facts implies that this is a subsequence of A276573.
Indexing starts from zero, because a(0)=0 is a special case in this sequence, as it is only number which is its own child in the least squares beanstalk tree.

Crossrefs

Subsequence of A005563, A276573 and A278489.

Programs

  • PARI
    \\ (For a more intelligent way to generate the terms, check Altug Alkan's PARI-code for A273324).
    istwo(n:int)=my(f); if(n<3, return(n>=0); ); f=factor(n>>valuation(n, 2)); for(i=1, #f[, 1], if(bitand(f[i, 2], 1)==1&&bitand(f[i, 1], 3)==3, return(0))); 1
    isthree(n:int)=my(tmp=valuation(n, 2)); bitand(tmp, 1)||bitand(n>>tmp, 7)!=7
    A002828(n)=if(issquare(n), !!n, if(istwo(n), 2, 4-isthree(n))) \\ From Charles R Greathouse IV, Jul 19 2011
    isA278491(n) = (!n || ((A002828(1+n) == 1) && (A002828(4+n) == 4)));
    i=0; n=0; while(i <= 10000, if(isA278491(n), write("b278491.txt", i, " ", n); i++); n++ );
    
  • Scheme
    ;; With Antti Karttunen's IntSeq-library.
    (define A278491 (MATCHING-POS 0 0 (lambda (n) (= 4 (A278216 n)))))

Formula

a(0) = 0, and for n >= 1, a(n) = A273324(n)^2 - 1.