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!)
A288452 Pseudoperfect totient numbers: numbers n such that equal the sum of a subset of their iterated phi(n). 4

%I #18 Jun 25 2017 15:13:57

%S 3,5,7,9,11,13,15,17,19,23,25,27,29,31,33,35,37,39,41,43,47,49,51,53,

%T 55,59,61,65,67,69,71,73,77,79,81,83,85,87,89,97,101,103,107,109,111,

%U 113,115,119,121,123,125,127,131,137,139,141,143,149,151,153,155

%N Pseudoperfect totient numbers: numbers n such that equal the sum of a subset of their iterated phi(n).

%C Analogous to A005835 (pseudoperfect numbers) as A082897 (perfect totient numbers) is analogous to A000396 (perfect numbers).

%C All the odd primes are in this sequence.

%C Number of terms < 10^k: 4, 40, 350, 2956, 24842, etc. - _Robert G. Wilson v_, Jun 17 2017

%C All terms are odd. If n is even, phi(n) <= n/2, and except for n = 2, we will have phi(n) also even. So the sum of the phi sequence < n*(1/2 + 1/4 + ...) = n. - _Franklin T. Adams-Watters_, Jun 25 2017

%H Robert G. Wilson v, <a href="/A288452/b288452.txt">Table of n, a(n) for n = 1..10000</a>

%e The iterated phi of 25 are 20, 8, 4, 2, 1 and 25 = 20 + 4 + 1.

%t pseudoPerfectTotQ[n_]:= Module[{tots = Most[Rest[FixedPointList[EulerPhi@# &, n]]]}, MemberQ[Total /@ Subsets[tots, Length[tots]], n]]; Select[Range[155], pseudoPerfectTotQ]

%o (PARI) subsetSum(v, target)=if(setsearch(v,target), return(1)); if(#v<2, return(target==0)); my(u=v[1..#v-1]); if(target>v[#v] && subsetSum(u, target-v[#v]), return(1)); subsetSum(u,target);

%o is(n)=if(isprime(n), return(n>2)); my(v=List(),k=n); while(k>1, listput(v,k=eulerphi(k))); subsetSum(Set(v),n) \\ _Charles R Greathouse IV_, Jun 25 2017

%Y Supersequence of A082897. Subsequence of A286265.

%Y Cf. A000010, A000396, A005835, A053478, A092693.

%K nonn

%O 1,1

%A _Amiram Eldar_, Jun 09 2017

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 April 24 13:38 EDT 2024. Contains 371957 sequences. (Running on oeis4.)