cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A181676 Number of ways of writing n = m + f! with m a semiprime and f > 0.

Original entry on oeis.org

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

Views

Author

Juri-Stepan Gerasimov, Nov 04 2010

Keywords

Comments

Number of partitions of n into a semiprime and a factorial.

Examples

			a(16)=3 because 16 = 2*5 + 3! = 2*7 + 2! = 3*5 + 1!.
		

Crossrefs

Programs

  • 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