login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A174164
Numbers n such that 1 = abs(sum{p-1|p is prime and divisor of n} - product{p-1|p is prime and divisor of n}).
1
6, 10, 12, 14, 18, 20, 22, 24, 26, 28, 30, 34, 36, 38, 40, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 68, 72, 74, 76, 80, 82, 86, 88, 90, 92, 94, 96, 98, 100, 104, 106, 108, 112, 116, 118, 120, 122, 124, 134, 136, 142, 144, 146, 148, 150, 152, 158, 160, 162, 164, 166, 172
OFFSET
1,1
LINKS
EXAMPLE
6 is a term because 6=2*3 and 1=abs((2-1)+(3-1)-(2-1)*(3-1)).
10 is a term because 10=2*5 and 1=abs((2-1)+(5-1)-(2-1)*(5-1)).
MAPLE
From R. J. Mathar, Apr 26 2010: (Start)
A055631 := proc(n) add(d-1, d= numtheory[factorset](n) ) ; end proc:
A173557 := proc(n) mul(d-1, d= numtheory[factorset](n) ) ; end proc:
isA174164 := proc(n) A055631(n)-A173557(n) ; abs(%) = 1 ; end proc:
for n from 2 to 200 do if isA174164(n) then printf("%d, ", n) ; end if; end do: (End)
MATHEMATICA
filterQ[n_] := With[{pp = FactorInteger[n][[All, 1]]}, 1 == Abs[Total[pp-1] - Times @@ (pp-1)]];
Select[Range[200], filterQ] (* Jean-François Alcover, Sep 17 2020 *)
CROSSREFS
Union of A100367 and A143207.
Sequence in context: A177712 A176552 A176587 * A098902 A100367 A213716
KEYWORD
nonn
AUTHOR
EXTENSIONS
Corrected (53 replaced by 52, 90 and 120 inserted) by R. J. Mathar, Apr 26 2010
STATUS
approved