|
| |
|
|
A102548
|
|
Number of integers <= n that are expressible in the form u^2+v^2, with u and v integers.
|
|
0
| |
|
|
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; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,2
|
|
|
REFERENCES
| Daniel Shanks, The Second-Order Term in the Asymptotic Expansion of $B(x)$, Mathematics of Computation, Vol. 18, No. 85 (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: A159481 A194206 A046699 * A004001 A086841 A076502
Adjacent sequences: A102545 A102546 A102547 * A102549 A102550 A102551
|
|
|
KEYWORD
| nonn
|
|
|
AUTHOR
| Salvador Perez Gomez (pies314(AT)hotmail.com), Feb 24 2005
|
| |
|
|