OFFSET
1,4
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Mark Underwood, another goldbachian theme, Mar. 16, 2009 and follow-up on Oct. 21, 2011.
Mark Underwood and others, Another goldbachian theme, digest of 64 messages in primenumbers Yahoo group, Mar 16, 2009 - Oct 30, 2011. [Cached copy]
EXAMPLE
a(12)=2: 12=11+1=3+3^2; a(13)=3: 13=11+2=7+2*3=5+2^3.
MATHEMATICA
nmax = 1000;
S = Select[Range[nmax], Max[FactorInteger[#][[All, 1]]] <= 3&];
a[n_] := Count[TakeWhile[S, #<n&], s_ /; PrimeQ[n-s]];
Table[a[n], {n, 1, nmax}] (* Jean-François Alcover, Oct 13 2021 *)
PROG
(PARI) A081308(n)=my(L2=log(2)); sum(e3=0, log(n+.5)\log(3), sum(e2=0, log(n\3^e3)\L2, isprime(n-(3^e3)<<e2))) \\ M. F. Hasler, Oct 21 2011
(Haskell)
a081308 n = sum $ map (a010051' . (n -)) $ takeWhile (< n) a003586_list
-- Reinhard Zumkeller, Jul 04 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Mar 17 2003
STATUS
approved