A287472 Triangular numbers k such that phi(k) is also a triangular number, where phi(k) is the Euler totient function (A000010).
1, 231, 1035, 6786, 190036, 193131, 766941, 1237951, 1348903, 3069003, 3396921, 8034036, 9152781, 11875501, 15694003, 28001386, 29587278, 35149920, 61643856, 63196903, 130758706, 178161126, 198214005, 227751153, 268111746, 339210081, 402102261, 654224878
Offset: 1
Keywords
Examples
231 = 21*22/2 is triangular, phi(231)=120=15*16/2 is also triangular, thus 231 is in the sequence.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..100
Programs
-
Mathematica
triQ[n_] := IntegerQ@Sqrt[8n+1]; Select[Accumulate[Range[1000]], triQ[EulerPhi[#]]&]
-
PARI
isok(n) = ispolygonal(n, 3) && ispolygonal(eulerphi(n), 3); \\ Michel Marcus, May 25 2017
Comments