login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A181676
Number of ways of writing n = m + f! with m a semiprime and f > 0.
2
0, 0, 0, 0, 1, 1, 1, 1, 0, 2, 2, 2, 0, 0, 2, 3, 1, 0, 0, 1, 1, 1, 2, 1, 0, 1, 3, 3, 0, 1, 1, 1, 1, 2, 2, 2, 1, 1, 3, 3, 2, 0, 0, 1, 2, 1, 1, 1, 1, 2, 1, 2, 1, 0, 1, 1, 3, 2, 3, 1, 1, 1, 3, 2, 0, 1, 1, 1, 0, 2, 2, 0, 1, 0, 3, 1, 0, 1, 2, 1, 1, 1, 2, 1, 0, 2, 2, 3, 2, 0, 1, 2, 3, 1, 2, 2, 2, 1, 1, 1, 2, 0, 0, 0, 0
OFFSET
1,10
COMMENTS
Number of partitions of n into a semiprime and a factorial.
LINKS
EXAMPLE
a(16)=3 because 16 = 2*5 + 3! = 2*7 + 2! = 3*5 + 1!.
MAPLE
N:= 200: # for a(1) .. a(N)
R:= Vector(N):
S:= select(t -> numtheory:-bigomega(t)=2, [$1..N]):
F:= 1: v:= 1:
for i from 2 do v:= v*i; if v > N then break fi; F:= F, v od:
F:= [F]:
for s in S do
for f in F do
v:= s+f;
if v > N then break fi;
R[v]:= R[v]+1
od od:
convert(R, list); # Robert Israel, Sep 20 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved