OFFSET
1,2
COMMENTS
a(n) = 3 iff n is prime.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
FORMULA
Row sums of triangle A156837.
EXAMPLE
a(4) = 7 since row 4 of triangle A156837 = (3, 3, 0, 1).
MAPLE
PROG
(PARI)
A156348(n, k) = if(k<1 || k>n || n%k, 0, binomial(n/k-2+k, k-1)); \\ After R. J. Mathar's Maple-program in A156348
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gary W. Adamson & Mats Granvik, Feb 16 2009
EXTENSIONS
Extended beyond a(14) by R. J. Mathar, Mar 03 2013
More terms from Antti Karttunen, Nov 30 2024
STATUS
approved