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!)
A087893 Number of numbers m satisfying 1 < m < n such that m^2 == m (mod n). 3
0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 2, 0, 2, 2, 0, 0, 2, 0, 2, 2, 2, 0, 2, 0, 2, 0, 2, 0, 6, 0, 0, 2, 2, 2, 2, 0, 2, 2, 2, 0, 6, 0, 2, 2, 2, 0, 2, 0, 2, 2, 2, 0, 2, 2, 2, 2, 2, 0, 6, 0, 2, 2, 0, 2, 6, 0, 2, 2, 6, 0, 2, 0, 2, 2, 2, 2, 6, 0, 2, 0, 2, 0, 6, 2, 2, 2, 2, 0, 6, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 0, 6, 0, 2, 6 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
COMMENTS
The number of nontrivial unitary divisors of n (i.e., excluding 1 and n). - Amiram Eldar, May 29 2020
a(n) first deviates from b(n) = 2*A079275(n) at a(210) = 14 <> b(210) = 12. - Georg Fischer, May 23 2024
REFERENCES
C. R. J. Singleton, "Prime Function Problem": Solution to Problem 2355, Journal of Recreational Mathematics, Vol. 29(3) pp. 232-234, 1998.
LINKS
FORMULA
a(n) = 2^omega(n) - 2 (for n > 1).
MATHEMATICA
Join[{0}, Table[2^(PrimeNu[n]) - 2, {n, 2, 50}]] (* or *) Table[2*Module[{c = PrimeNu[n]}, (c (c - 1))/2], {n, 1, 20}] (* G. C. Greubel, May 20 2017 *)
PROG
(PARI) concat([0], for(n=2, 50, print1( 2^(omega(n)) - 2, ", "))) \\ G. C. Greubel, May 20 2017
CROSSREFS
Sequence in context: A294902 A321516 A172246 * A079169 A345060 A097106
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, Oct 13 2003
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 July 16 09:56 EDT 2024. Contains 374345 sequences. (Running on oeis4.)