Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A100449
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A100449 Number of ordered pairs (i,j) with |i| + |j| <= n and GCD{i,j} <= 1. +0
2
1, 5, 9, 17, 25, 41, 49, 73, 89, 113, 129, 169, 185, 233, 257, 289, 321, 385, 409, 481, 513, 561, 601, 689, 721, 801, 849, 921, 969, 1081, 1113, 1233, 1297, 1377, 1441, 1537, 1585, 1729, 1801, 1897, 1961, 2121, 2169, 2337, 2417, 2513, 2601, 2785, 2849, 3017 (list; graph; listen)
OFFSET

0,2

COMMENT

Note that GCD{0,k} = k for any k.

FORMULA

a(n) = 1+4*Sum(phi(k), k=1..n) = 1+4*A002088(n). - Vladeta Jovovic (vladeta(AT)eunet.rs), Nov 25 2004

MAPLE

f:=proc(n) local i, j, k, t1, t2, t3; t1:=0; for i from -n to n do for j from -n to n do if abs(i) + abs(j) <= n then t2:=gcd(i, j); if t2 <= 1 then t1:=t1+1; fi; fi; od: od: t1; end;

MATHEMATICA

f[n_] := Length[ Union[ Flatten[ Table[ If[ Abs[i] + Abs[j] <= n && GCD[i, j] <= 1, {i, j}, {0, 0}], {i, -n, n}, {j, -n, n}], 1]]]; Table[ f[n], {n, 0, 49}] (from Robert G. Wilson v Dec 14 2004)

CROSSREFS

Cf. A018805, A100448, A100450, A027430, etc.

Sequence in context: A054278 A080335 A089109 this_sequence A146284 A081295 A160426

Adjacent sequences: A100446 A100447 A100448 this_sequence A100450 A100451 A100452

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Nov 21 2004

EXTENSIONS

I would also like to get the sequences of the numbers of distinct sums i+j (also distinct products i*j) over all ordered pairs (i,j) with |i| + |j| <= n; also over all ordered pairs (i,j) with |i| + |j| <= n and GCD{i,j} <= 1.

More terms from Vladeta Jovovic (vladeta(AT)eunet.rs), Nov 25 2004

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 24 23:16 EST 2009. Contains 167481 sequences.


AT&T Labs Research