OFFSET
1,2
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
PROG
(Haskell)
a133811 n = a133811_list !! (n-1)
a133811_list = 1 : filter f [2..] where
f x = (and $ zipWith (<) eps $ tail eps) &&
(all (== 1) $ zipWith (-) (tail ips) ips)
where ips = map a049084 $ a027748_row x
eps = a124010_row x
-- Reinhard Zumkeller, Nov 07 2012
(PARI) isok(n) = {my(f = factor(n)); my(nbf = #f~); my(lastp = 0); for (i=1, nbf, if (lastp && (f[i, 1] != nextprime(lastp+1)), return (0)); lastp = f[i, 1]; ); for (j=2, nbf, if (f[j, 2] <= f[j-1, 2], return (0)); ); return (1); } \\ Michel Marcus, Jun 04 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Olivier Gérard, Sep 23 2007
STATUS
approved