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!)
A022157 a(n) = n^2 - phi(n)*tau(n)^2. 2
0, 0, 1, -2, 9, 4, 25, 0, 27, 36, 81, 0, 121, 100, 97, 56, 225, 108, 289, 112, 249, 324, 441, 64, 445, 484, 441, 352, 729, 388, 841, 448, 769, 900, 841, 324, 1225, 1156, 1137, 576, 1521, 996, 1681, 1216, 1161, 1764, 2025, 704, 2023, 1780 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
An example of a sequence constructed from an arithmetic inequality.
LINKS
S. Porubsky and M. G. Greening, Problem E2351, Amer. Math. Monthly, 80, 1973, p. 436.
FORMULA
a(n) >= 0 for all n except for n = 4.
a(n) = 0 if and only if n is one of 1, 2, 8, 12.
MAPLE
with(numtheory); [ seq(n^2-phi(n)*tau(n)^2, n=1..100) ];
MATHEMATICA
Table[n^2 - EulerPhi[n]DivisorSigma[0, n]^2, {n, 50}] (* Harvey P. Dale, Apr 12 2013 *)
PROG
(PARI) a(n) = n^2 - eulerphi(n)*numdiv(n)^2; \\ Michel Marcus, Jun 21 2017
(Magma) [n^2-EulerPhi(n)*NumberOfDivisors(n)^2: n in [1..60]]; // Vincenzo Librandi, Jun 21 2017
(GAP) List([1..50], n->n^2-Phi(n)*Tau(n)^2); # Muniru A Asiru, Sep 29 2018
CROSSREFS
Cf. A110601.
Sequence in context: A228967 A342661 A213821 * A065599 A171228 A328618
KEYWORD
sign,easy,nice
AUTHOR
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 17 23:23 EDT 2024. Contains 371767 sequences. (Running on oeis4.)