login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A073092 Number of numbers of the form x^2 + y^2 (0 <= x <= y) less than or equal to n. 1
1, 2, 3, 3, 4, 5, 5, 5, 6, 7, 8, 8, 8, 9, 9, 9, 10, 11, 12, 12, 13, 13, 13, 13, 13, 15, 16, 16, 16, 17, 17, 17, 18, 18, 19, 19, 20, 21, 21, 21, 22, 23, 23, 23, 23, 24, 24, 24, 24, 25, 27, 27, 28, 29, 29, 29, 29, 29, 30, 30, 30, 31, 31, 31, 32, 34, 34, 34, 35, 35, 35, 35, 36, 37, 38 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Amiram Eldar, Table of n, a(n) for n = 0..10000

FORMULA

a(n) = Sum_{k=0..n} A000161(k).

a(n) is asymptotic to Pi*n/8.

EXAMPLE

0^2 + 0^2, 0^2 + 1^2, 1^2 + 1^2 are less than or equal to 2 hence a(2) = 3.

MATHEMATICA

Accumulate @ Table[Length @ PowersRepresentations[n, 2, 2], {n, 0, 100}] (* Amiram Eldar, Mar 08 2020 *)

PROG

(PARI) a(n)=sum(x=0, n, sum(y=0, x, if((sign(x^2+y^2-n)+1)*sign(x^2+y^2-n), 0, 1)))

CROSSREFS

Cf. A000161, A001481.

Cf. A057655.

Sequence in context: A165706 A242453 A241151 * A088023 A324477 A287292

Adjacent sequences:  A073089 A073090 A073091 * A073093 A073094 A073095

KEYWORD

easy,nonn

AUTHOR

Benoit Cloitre, Aug 18 2002

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 16 09:57 EDT 2021. Contains 345056 sequences. (Running on oeis4.)