OFFSET
1,2
COMMENTS
Let p(0) = 1 and p(i+1) = A*p(i) + B, if p(i) is prime for i = 1..k, then z = p(1) * ... * p(k) is called a Zeisel number.
LINKS
OEIS Wiki, Zeisel numbers
Eric Weisstein's World of Mathematics, Zeisel Number.
Wikipedia, Zeisel number
EXAMPLE
. ---+------------------------+------------------------------
. 1 | 1 2 | 3 5 7 | 105
. 2 | 4 -1 | 3 11 43 | 1419
. 3 | 1 6 | 7 13 19 | 1729
. 4 | 2 3 | 5 13 29 | 1885
. 5 | 3 2 | 5 17 53 | 4505
. 6 | 2 5 | 7 19 43 | 5719
. 7 | 10 -7 | 3 23 223 | 15387
. 8 | 2 9 | 11 31 71 | 24211
. 9 | 6 -1 | 5 29 177 | 25085
. 10 | 4 3 | 7 31 141 | 27449
. 11 | 13 -10 | 3 29 367 | 31929
. 12 | 8 -3 | 5 37 295 | 54205 .
PROG
(Haskell)
a252094 n = a252094_list !! (n-1)
(a252094_list, a252095_list) = unzip $ f 3 where
f x = if z then (q, p - q) : f (x + 2) else f (x + 2) where
z = 0 `notElem` ds && length ds > 2 &&
all (== 0) (zipWith mod (tail ds) ds) && all (== q) qs
q:qs = (zipWith div (tail ds) ds)
ds = zipWith (-) (tail ps) ps
ps = 1 : ps'; ps'@(p:_) = a027746_row x
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Dec 15 2014
STATUS
approved