OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Osama Alkam and Emad Abu Osba, On the regular elements in Zn, Turk J Math, 32 (2008), 31-39.
B. Apostol and L. Petrescu, Extremal Orders of Certain Functions Associated with Regular Integers (mod n), Journal of Integer Sequences, 2013, # 13.7.5.
L. Tóth, Regular integers modulo n, Annales Univ. Sci. Budapest., Sect. Comp., 29 (2008), 263-275.
FORMULA
a(n) = n*(A055653(n)+1)/2.
PROG
(PARI) isregu(k, n) = {g = gcd(k, n); if ((n % g == 0) && (gcd(g, n/g) == 1), return(k), return(0)); }
a(n) = sum(k=1, n, isregu(k, n)) \\ Michel Marcus, May 25 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Laszlo Toth, Sep 04 2008
EXTENSIONS
Extended by R. J. Mathar, Sep 05 2008
STATUS
approved