OFFSET
0,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..576
S. K. Ghosal, J. K. Mandal, Stirling Transform Based Color Image Authentication, Procedia Technology, 2013 Volume 10, 2013, Pages 95-104.
Eric Weisstein's World of Mathematics, Stirling Transform
FORMULA
G.f.: Sum_{k>=1} x^prime(k)/Product_{j=1..prime(k)} (1 - j*x). - Ilya Gutkovskiy, Jun 19 2018
MAPLE
b:= proc(n, m) option remember;
`if`(n=0, `if`(isprime(m), 1, 0), m*b(n-1, m)+b(n-1, m+1))
end:
a:= n-> b(n, 0):
seq(a(n), n=0..25); # Alois P. Heinz, Aug 06 2021
MATHEMATICA
a[n_] := Sum[ StirlingS2[n, k]*Boole[PrimeQ[k]], {k, 0, n}]; Table[a[n], {n, 0, 23}] (* Jean-François Alcover, Oct 29 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric W. Weisstein, Jul 02 2003
STATUS
approved