login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A189416 Number of parallelograms on an n X n grid. 4
0, 1, 22, 158, 674, 2159, 5664, 13004, 26904, 51401, 92094, 156710, 255090, 400359, 608656, 900100, 1299336, 1836461, 2546550, 3472162, 4661898, 6173123, 8071952, 10434600, 13346080, 16905033, 21221558, 26419338, 32636098, 40027283, 48761448 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
Nathaniel Johnston, C program for computing terms
Eric Weisstein's World of Mathematics, Parallelogram
FORMULA
a(n) = Sum_{a=1..n-1} Sum_{b=1..n-1} (n-a)*(n-b)*(2*a*b - gcd(a,b)). - Andrew Howroyd, Sep 19 2017
MATHEMATICA
a[n_] := Sum[(n-a)*(n-b)*(2*a*b - GCD[a, b]), {a, 1, n-1}, {b, 1, n-1}];
Array[a, 31] (* Jean-François Alcover, Oct 08 2017, translated from PARI *)
PROG
(PARI) a(n) = sum(a=1, n-1, sum(b=1, n-1, (n-a)*(n-b)*(2*a*b - gcd(a, b)) )); \\ Andrew Howroyd, Sep 19 2017
CROSSREFS
Sequence in context: A224257 A244868 A223913 * A224185 A185859 A173393
KEYWORD
nonn
AUTHOR
Martin Renner, Apr 21 2011
EXTENSIONS
a(6)-a(31) from Nathaniel Johnston, Apr 24 2011
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 01:19 EDT 2024. Contains 371906 sequences. (Running on oeis4.)