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!)
A270543 Number of ordered pairs (i,j) of integers with |i|, |j| <= n, |i * j| <= n, and i even. 1
1, 3, 11, 13, 25, 27, 39, 41, 57, 59, 71, 73, 93, 95, 107, 109, 129, 131, 147, 149, 169, 171, 183, 185, 213, 215, 227, 229, 249, 251, 271, 273, 297, 299, 311, 313, 341, 343, 355, 357, 385, 387, 407, 409, 439, 431, 443, 445, 481, 483, 499, 501, 521, 523, 543, 545 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Table of n, a(n) for n=0..55.

FORMULA

a(n) = 1 + 2*n + 2*floor(n/2) + 4*Sum_{k=1..floor(n/2)}floor(n/(2k)).

a(n) = A226355(n) - A270544(n).

EXAMPLE

a(0) = 1 from (i,j) = (0,0).

a(1) = 3 from (i,j) = (0,0), (0,1), (0,-1).

a(2) = 11: (0,0), (0,+-1), (0,+-2), (+-2, 0), (+-2,+-1).

MATHEMATICA

a[n_]:=1+2n+2Floor[n/2]+4Sum[Floor[n/(2k)], {k, 1, Floor[n/2]}]

PROG

(PARI) a(n) = {my(nb = 0); for (i=-n, n, if ((i % 2) == 0, for(j=-n, n, if (abs(i*j) <= n, nb++); ); ); ); nb; }

CROSSREFS

The corresponding sequence where i is odd is A270544.

Cf. A226355.

Sequence in context: A045429 A168164 A296933 * A213697 A287348 A019374

Adjacent sequences:  A270540 A270541 A270542 * A270544 A270545 A270546

KEYWORD

nonn

AUTHOR

Lorenz H. Menke, Jr., Mar 18 2016

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 February 18 09:15 EST 2020. Contains 332011 sequences. (Running on oeis4.)