OFFSET
1,2
EXAMPLE
MATHEMATICA
f[p_, e_] := (p^(e + 1) - 1)/(p - 1); s[n_] := Module[{fct = FactorInteger[n], p, e}, p = fct[[;; , 1]]; e = fct[[;; , 2]]; If[Position[p/(1 + FoldList[Times, 1, f @@@ Most@ fct]), _?(# > 1 &)] == {}, Times @@ (e + 1), Nothing]]; s[1] = 1; Array[s, 320] (* Amiram Eldar, Oct 17 2023 *)
PROG
(Magma) sk:=func<n, k|&+[Divisors(n)[i]:i in [1..k]]>; ff:=func<n|forall{k:k in [2..#Divisors(n)]|sk(n, k-1) ge Divisors(n)[k]-1}>; a:=[]; for n in [1..400] do if ff(n) then Append(~a, #Divisors(n)); end if; end for; a;
CROSSREFS
KEYWORD
nonn
AUTHOR
Marius A. Burtea, Oct 17 2023
STATUS
approved