Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A102548
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A102548 Number of integers <= n that are expressible in the form u^2+v^2, with u and v integers. +0
1
1, 2, 2, 3, 4, 4, 4, 5, 6, 7, 7, 7, 8, 8, 8, 9, 10, 11, 11, 12, 12, 12, 12, 12, 13, 14, 14, 14, 15, 15, 15, 16, 16, 17, 17, 18, 19, 19, 19, 20, 21, 21, 21, 21, 22, 22, 22, 22, 23, 24, 24, 25, 26, 26, 26, 26, 26, 27, 27, 27, 28, 28, 28, 29, 30, 30, 30, 31, 31, 31, 31, 32, 33, 34, 34 (list; graph; listen)
OFFSET

1,2

REFERENCES

Daniel Shanks, The Second-Order Term in the Asymptotic Expansion of $B(x)$, Mathematics of Computation, Vol. 18, No. 85 (Jan., 1964), 75-86.

LINKS

Eric Weisstein's World of Mathematics, Landau-Ramanujan Constant.

EXAMPLE

a(8)=5 because 1=0^2+1^2, 2=1^2+1^2, 4=0^2+2^2, 5=1^2+2^2, 8=2^2+2^2, but 3,6 and 7 not are of the form u^2+v^2, with u and v integers.

MAPLE

a := proc(n) local aux, i, m, u, v; aux:=0; for i from 1 to n do m:=floor(sqrt(i/2)); for u from 0 to m do v:=sqrt(i-u^2); if (v = floor(v)) then aux:=aux+1; u:=m; end if; end do; end do; aux; end proc:

CROSSREFS

Cf. A001481, A000691.

Sequence in context: A029111 A092038 A046699 this_sequence A004001 A086841 A076502

Adjacent sequences: A102545 A102546 A102547 this_sequence A102549 A102550 A102551

KEYWORD

nonn

AUTHOR

Salvador Perez Gomez (pies314(AT)hotmail.com), Feb 24 2005

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 July 24 12:00 EDT 2008. Contains 142294 sequences.


AT&T Labs Research