OFFSET
1,1
COMMENTS
A balanced number k is a number such that phi(k) | sigma(k).
EXAMPLE
8 is in the sequence since the balanced numbers less than 8 are: 1, 2, 3, 6 and 6 + 2 = 8.
10 is not in the sequence since the balanced numbers less than 10 are: 1, 2, 3, 6, and no two sum to 10.
MATHEMATICA
m = 100; balanced = Select[Range[m], Divisible[DivisorSigma[1, #], EulerPhi[#]] &]; q[n_] := Length[IntegerPartitions[n, {2}, balanced]] > 0; Select[Range[m], q] (* Amiram Eldar, Feb 01 2022 *)
PROG
(PARI) isb(n) = (sigma(n) % eulerphi(n)) == 0;
isok(m) = for (k=1, m-1, if (isb(k) && isb(m-k), return(1))); \\ Michel Marcus, Feb 01 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Feb 01 2022
STATUS
approved