Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A002471
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A002471 Number of partitions of n into a prime and a square.
(Formerly M0073 N0025)
+0
6
0, 1, 2, 1, 1, 2, 2, 1, 1, 0, 3, 2, 1, 2, 1, 1, 2, 2, 2, 2, 2, 1, 3, 1, 0, 1, 3, 2, 2, 2, 1, 3, 2, 0, 2, 1, 1, 4, 2, 1, 3, 2, 2, 2, 2, 1, 4, 2, 1, 1, 2, 2, 3, 3, 1, 3, 2, 0, 3, 2, 1, 4, 2, 0, 2, 3, 3, 4, 2, 1, 3, 3, 2, 1, 3, 1, 4, 2, 2, 3, 1 (list; graph; listen)
OFFSET

1,3

COMMENT

a(A014090(n))=0; a(A014089(n))>0; a(A143989(n))=1. [From Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Sep 07 2008]

REFERENCES

Selmer, Ernst S.; Eine numerische Untersuchung ueber die Darstellung der natuerlichen Zahlen als Summe einer Primzahl und einer Quadratzahl. Arch. Math. Naturvid. 47, (1943). no. 2, 21-39.

N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).

N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

LINKS

T. D. Noe, Table of n, a(n) for n = 1..10000

MAPLE

n->nops(select(isprime, [ seq(n-i^2, i=0..trunc(sqrt(n))) ])):

with(combstruct): specM0073 := {N=Prod(P, S), P=Set(Z, card>=1), S=Set(Z, card>=0)}: `combstruct/compile`(specM0073, unlabeled): `combstruct/Count`[ specM0073, unlabeled ][ P ] := proc(p) option remember; if isprime(p) then 1 else 0 fi end: `combstruct/Count`[ specM0073, unlabeled ][ S ] := proc(p) option remember; if type(sqrt(p), integer) then 1 else 0 fi end: M0073 := n->count([ N, specM0073, unlabeled ], size=n):

CROSSREFS

A064272. [From Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Sep 07 2008]

Sequence in context: A034798 A115236 A064286 this_sequence A091243 A037826 A079882

Adjacent sequences: A002468 A002469 A002470 this_sequence A002472 A002473 A002474

KEYWORD

nonn,nice

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

EXTENSIONS

Sequence corrected by Paul Zimmermann Mar 15 1996

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research