OFFSET
0,2
COMMENTS
All the terms of this sequence are odd numbers (A005408).
For n > 1, a(n) is congruent to 7 mod 8 (A004771).
Apart from a(0) the same as A171503. - R. J. Mathar, Sep 03 2019
FORMULA
a(n) = 2*A206350(n+1) - 1. - Michel Marcus, Jul 07 2019
EXAMPLE
a(0) = 1 since X(0) = {0};
a(1) = 3 since X(1) = {-1, 0, 1};
a(2) = 7 since X(2) = {-2, -1, -1/2, 0, 1/2, 1, 2};
a(3) = 15 since X(3) = {-3, -2, -3/2, -1, -2/3, -1/2, -1/3, 0, 1/3, 1/2, 2/3, 1, 3/2, 2, 3};
...
PROG
(Magma) I:=[1, 3]; [n le 2 select I[n] else Self(n-1)+4*EulerPhi(n-1): n in [1..51]];
(PARI) nmax = 50; a=vector(nmax+1); a[1]=1; a[2]=3; for(n=3, nmax+1, a[n]=a[n-1]+4*eulerphi(n-1)); a
CROSSREFS
KEYWORD
nonn
AUTHOR
Stefano Spezia, Jul 06 2019
STATUS
approved