A196227 revision #19
|
|
A196227
|
|
Number of 2 X 2 integer matrices with elements from {1,...,n} whose determinant is 1.
|
|
5
|
|
|
0, 0, 2, 8, 14, 28, 34, 56, 70, 92, 106, 144, 158, 204, 226, 256, 286, 348, 370, 440, 470, 516, 554, 640, 670, 748, 794, 864, 910, 1020, 1050, 1168, 1230, 1308, 1370, 1464, 1510, 1652, 1722, 1816, 1878, 2036, 2082, 2248, 2326, 2420, 2506, 2688, 2750, 2916, 2994
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
It is also the number of 2 X 2 integer matrices with elements from {1,...,n} whose determinant is -1.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = A171503(n) - (2*n + 1) for n > 0.
a(n) = -2*(n + 1) + 4*Sum_{k=1..n} phi(k) for n > 0.
|
|
MATHEMATICA
|
Table[cnt = 0; Do[If[a*d-b*c == 1, cnt++], {a, n}, {b, n}, {c, n}, {d, n}]; cnt, {n, 50}] (* T. D. Noe, Oct 11 2011 *)
|
|
PROG
|
(PARI) a(n) = if(n < 1, 0, 4*sum(k=1, n, eulerphi(k)) - 2*(n + 1)) \\ Andrew Howroyd, May 05 2020
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|