A384657 Numbers k such that A384655(k) > k.
24, 48, 72, 80, 96, 108, 112, 120, 144, 160, 168, 180, 192, 200, 216, 224, 240, 252, 264, 280, 288, 300, 312, 320, 324, 336, 352, 360, 384, 396, 400, 408, 416, 420, 432, 440, 448, 456, 468, 480, 504, 520, 528, 540, 552, 560, 576, 600, 612, 624, 640, 648, 660, 672, 684, 696
Offset: 1
Keywords
Examples
24 is a term since A384655(24) = 25 > 24.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
f[p_, e_, k_] := p^e - If[e < k, 0, p^(e - k)]; q[n_] := Module[{fct = FactorInteger[n], emax, s}, emax = Max[fct[[;; , 2]]]; If[emax < 2, False, s = emax * n; Do[s -= Times @@ (f[#1, #2, k] & @@@ fct), {k, 1, emax}]; s > n]]; Select[Range[700], q]
-
PARI
isok(m) = {my(f = factor(m), p, e, emax, s); if(issquarefree(f), 0, p = f[,1]; e = f[,2]; emax = vecmax(e); s = emax*m; for(k = 1, emax, s -= prod(i = 1, #p, p[i]^e[i] - if(e[i] < k, 0, p[i]^(e[i]-k)))); s > m);}
Comments