OFFSET
1,1
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..10000
EXAMPLE
2+3+3 = 8 divides 2*3*4 = 24, so 233 is a member.
MAPLE
A178339 := proc(n) option remember: local p, q: if(n=1)then return 11: fi: p:=procname(n-1): do p:=nextprime(p): q:=mul(d, d=convert(p+1, base, 10)): if(q>0 and q mod add(d, d=convert(p, base, 10)) = 0)then return p: fi: od: end: seq(A178339(n), n=1..47); # Nathaniel Johnston, May 27 2011
MATHEMATICA
fQ[n_] := Block[{s = Plus @@ IntegerDigits@n, p = Times @@ IntegerDigits[n + 1]}, Mod[p, s] == 0 && p > 0]; Select[ Prime@ Range@ 250, fQ@# &]; Select[ Prime@ Range@ 500, fQ@# &]
Select[Prime[Range[500]], DigitCount[#+1, 10, 0]==0&&Divisible[Times@@IntegerDigits[ #+1], Total[ IntegerDigits[#]]]&] (* Harvey P. Dale, May 24 2023 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Giovanni Teofilatto, May 25 2010
EXTENSIONS
Corrected and extended by Robert G. Wilson v, Jun 05 2010
Name corrected by Nathaniel Johnston, May 27 2011
STATUS
approved