OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
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:
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
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Mar 10 2010
EXTENSIONS
Corrected (53 replaced by 52, 90 and 120 inserted) by R. J. Mathar, Apr 26 2010
STATUS
approved