cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A209982 Number of 2 X 2 matrices having all elements in {-n,...,n} and determinant 1.

This page as a plain text file.
%I A209982 #12 May 05 2020 17:10:58
%S A209982 0,20,52,116,180,308,372,564,692,884,1012,1332,1460,1844,2036,2292,
%T A209982 2548,3060,3252,3828,4084,4468,4788,5492,5748,6388,6772,7348,7732,
%U A209982 8628,8884,9844,10356,10996,11508,12276,12660,13812,14388,15156
%N A209982 Number of 2 X 2 matrices having all elements in {-n,...,n} and determinant 1.
%C A209982 See A210000 for a guide to related sequences.
%H A209982 Andrew Howroyd, <a href="/A209982/b209982.txt">Table of n, a(n) for n = 0..1000</a>
%F A209982 From _Andrew Howroyd_, May 05 2020: (Start)
%F A209982 a(n) = 8*A196227(n) + 4*(4*n + 1) = 8*A171503(n) - 4 for n > 0.
%F A209982 a(n) = -12 + 32*Sum_{k=1..n} phi(k) for n > 0. (End)
%t A209982 (See the Mathematica section at A209981.)
%o A209982 (PARI) a(n)=if(n<1, 0, 32*sum(k=1, n, eulerphi(k)) - 12) \\ _Andrew Howroyd_, May 05 2020
%Y A209982 Cf. A171503, A196227, A210000.
%K A209982 nonn
%O A209982 0,2
%A A209982 _Clark Kimberling_, Mar 17 2012