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.

Showing 1-3 of 3 results.

A046921 Number of ways to express 2n+1 as p+2a^2; p = 1 or prime, a >= 0.

Original entry on oeis.org

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

Views

Author

Keywords

Comments

Goldbach conjectured this sequence is never zero.
The only zero terms appear to be for the odd numbers 5777 and 5993. - T. D. Noe, Aug 23 2008

Crossrefs

Programs

Formula

a(n) = A046920(A005408(n)). - Reinhard Zumkeller, Apr 03 2013

A046923 Number of ways to express 2n+1 as p+2a^2; p prime, a >= 0.

Original entry on oeis.org

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

Views

Author

Keywords

Comments

The only zero terms appear to be for the odd numbers 1, 5777 and 5993. - T. D. Noe, Aug 23 2008
a(n) = A046922(A005408(n)). - Reinhard Zumkeller, Apr 03 2013

Crossrefs

Programs

Extensions

Definition corrected by T. D. Noe, Aug 23 2008

A046920 Number of ways to express n as p+2a^2; p = 1 or prime, a >= 0.

Original entry on oeis.org

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

Views

Author

Keywords

Crossrefs

Programs

  • Haskell
    a046920 n = length $ filter ((\x -> x == 1 || a010051 x == 1) . (n -)) $
                                takeWhile (< n) a001105_list
    -- Reinhard Zumkeller, Apr 03 2013
Showing 1-3 of 3 results.