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.

A039596 Numbers that are simultaneously triangular and square pyramidal.

Original entry on oeis.org

0, 1, 55, 91, 208335
Offset: 1

Views

Author

Keywords

Comments

Equivalent to 0^2 + 1^2 + 2^2 + 3^2 + ... + r^2 = 0 + 1 + 2 + 3 + ... + s = n for some r and s.

Examples

			1^2 + 2^2 + 3^2 + 4^2 + 5^2 = 1 + 2 + 3 + ... + 10 = 55, so 55 is in the sequence.
		

References

  • Joe Roberts, Lure of the Integers, page 245 (entry for 645).
  • David Wells, The Penguin Dictionary of Curious and Interesting Numbers, Penguin Books, p. 108.

Crossrefs

Intersection of A000217 and A000330.

Programs

  • Maple
    q:= n-> issqr(8*n+1):
    select(q, [sum(j^2, j=1..n)$n=0..100])[];  # Alois P. Heinz, Oct 17 2024

Extensions

Additional comments from Jud McCranie, Mar 19 2000
Zero inserted by Daniel Mondot, Sep 07 2023