OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
MATHEMATICA
SequencePosition[Table[If[DivisorSigma[0, n]==30, 1, 0], {n, 3*10^7}], {1, 1}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 10 2018 *)
PROG
(PARI) is(n)=numdiv(n)==30 && numdiv(n+1)==30
(PARI) list(lim)=my(v=List(), t); forprime(p=2, sqrtnint(lim\2, 14), my(p14=p^14); forprime(q=2, lim\p14, if(p==q, next); t=p14*q; if(numdiv(t+1)==30, listput(v, t)); if(numdiv(t-1)==30, listput(v, t-1)))); forprime(p=2, sqrtnint(lim\4, 9), my(p9=p^9); forprime(q=2, sqrtint(lim\p9), if(p==q, next); t=p9*q^2; if(numdiv(t+1)==30, listput(v, t)); if(numdiv(t-1)==30, listput(v, t-1)))); forprime(p=2, sqrtnint(lim\16, 5), my(p5=p^5); forprime(q=2, sqrtnint(lim\p5, 4), if(p==q, next); t=p5*q^4; if(numdiv(t+1)==30, listput(v, t)); if(numdiv(t-1)==30, listput(v, t-1)))); forprime(p=2, sqrtnint(lim\12, 4), my(p4=p^4); forprime(q=2, sqrtint(lim\p4\2), if(p==q, next); my(q2=q^2); forprime(r=2, lim\p4\q2, if(p==r || q==r, next); t=p4*q2*r; if(numdiv(t+1)==30, listput(v, t)); if(numdiv(t-1)==30, listput(v, t-1))))); Set(v)
CROSSREFS
KEYWORD
nonn
AUTHOR
Charles R Greathouse IV, Jun 19 2016
STATUS
approved