This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A322582 a(n) = n - A003958(n), where A003958 is fully multiplicative with a(p) = (p-1). 2
 0, 1, 1, 3, 1, 4, 1, 7, 5, 6, 1, 10, 1, 8, 7, 15, 1, 14, 1, 16, 9, 12, 1, 22, 9, 14, 19, 22, 1, 22, 1, 31, 13, 18, 11, 32, 1, 20, 15, 36, 1, 30, 1, 34, 29, 24, 1, 46, 13, 34, 19, 40, 1, 46, 15, 50, 21, 30, 1, 52, 1, 32, 39, 63, 17, 46, 1, 52, 25, 46, 1, 68, 1, 38, 43, 58, 17, 54, 1, 76, 65, 42, 1, 72, 21, 44, 31, 78, 1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,4 LINKS Antti Karttunen, Table of n, a(n) for n = 1..16384 FORMULA a(n) = n - A003958(n). MATHEMATICA a[1] = 0; a[n_] := n - Times @@ ((First[#] - 1)^Last[#] & /@ FactorInteger[n]); Array[a, 60] (* Amiram Eldar, Dec 17 2018 *) PROG (PARI) A003958(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1]--); factorback(f); }; A322582(n) = (n-A003958(n)); CROSSREFS Cf. A003958, A322581. Sequence in context: A006022 A326065 A078896 * A273133 A318841 A300238 Adjacent sequences:  A322579 A322580 A322581 * A322583 A322584 A322585 KEYWORD nonn AUTHOR Antti Karttunen, Dec 17 2018 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified October 23 17:32 EDT 2019. Contains 328373 sequences. (Running on oeis4.)