OFFSET
1,19
LINKS
Ana Rechtman, Août 2015, 4e défi, Images des Mathématiques, CNRS, 2015.
FORMULA
G.f.: (Sum_{i>=1} x^prime(i))*(Sum_{j>=1} x^(prime(j)^2))*(Sum_{k>=1} x^(prime(k)^3)). - Ilya Gutkovskiy, Feb 06 2017
EXAMPLE
For p=2, p+p^2+p^3 = 14 = A181149(1), so a(14)=1.
PROG
(PARI) a(n) = {nb = 0; forprime(p=2, n, forprime(q=2, n, if (p+q^2 > n, break); forprime(r=2, n, if (p+q^2+r^3 > n, break); if (p+q^2+r^3 == n, nb++); ); ); ); nb; }
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Sep 05 2015
STATUS
approved