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.

Showing 1-4 of 4 results.

A347788 Number of compositions (ordered partitions) of n into at most 2 nonprime parts.

Original entry on oeis.org

1, 1, 1, 0, 1, 2, 1, 2, 2, 3, 5, 2, 4, 4, 5, 5, 8, 4, 8, 6, 8, 7, 11, 6, 12, 9, 13, 9, 14, 10, 16, 12, 14, 13, 19, 13, 22, 14, 17, 17, 22, 16, 24, 18, 22, 19, 25, 18, 28, 21, 28, 21, 28, 22, 32, 25, 30, 25, 33, 26, 38, 28, 31, 29, 38, 29, 42, 30, 34, 33, 42
Offset: 0

Views

Author

Ilya Gutkovskiy, Sep 13 2021

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Length@Flatten[Permutations/@IntegerPartitions[n,2,Select[Range@n,!PrimeQ@#&]],1],{n,0,70}] (* Giorgos Kalogeropoulos, Sep 13 2021 *)
  • PARI
    A347788(n) = if(n<2,1,!isprime(n)+sum(k=1,n-1,!(isprime(k)+isprime(n-k)))); \\ Antti Karttunen, Nov 25 2022

A347796 Number of compositions (ordered partitions) of n into at most 3 nonprime parts.

Original entry on oeis.org

1, 1, 1, 1, 1, 2, 4, 2, 5, 6, 8, 11, 8, 13, 17, 17, 23, 25, 27, 33, 38, 37, 50, 48, 58, 63, 73, 70, 89, 82, 107, 102, 122, 112, 148, 136, 164, 161, 185, 173, 223, 196, 241, 231, 268, 254, 304, 273, 332, 318, 364, 348, 403, 364, 444, 415, 477, 448, 525, 479, 567
Offset: 0

Views

Author

Ilya Gutkovskiy, Sep 14 2021

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Length@Flatten[Permutations/@IntegerPartitions[n,3,Select[Range@n,!PrimeQ@#&]],1],{n,0,60}] (* Giorgos Kalogeropoulos, Sep 14 2021 *)

A347797 Number of compositions (ordered partitions) of n into at most 4 nonprime parts.

Original entry on oeis.org

1, 1, 1, 1, 2, 2, 4, 6, 5, 10, 14, 15, 24, 21, 35, 45, 48, 65, 77, 89, 114, 129, 148, 184, 205, 239, 285, 310, 361, 410, 459, 522, 593, 636, 740, 804, 911, 969, 1123, 1169, 1350, 1428, 1595, 1687, 1926, 1974, 2270, 2325, 2611, 2726, 3064, 3120, 3547, 3596, 4012, 4155
Offset: 0

Views

Author

Ilya Gutkovskiy, Sep 14 2021

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Length@Flatten[Permutations/@IntegerPartitions[n,4,Select[Range@n,!PrimeQ@#&]],1],{n,0,55}] (* Giorgos Kalogeropoulos, Sep 14 2021 *)

A347798 Number of compositions (ordered partitions) of n into at most 5 nonprime parts.

Original entry on oeis.org

1, 1, 1, 1, 2, 3, 4, 6, 10, 10, 19, 25, 29, 46, 50, 75, 103, 110, 162, 194, 240, 309, 368, 444, 565, 654, 795, 960, 1106, 1325, 1560, 1792, 2118, 2436, 2785, 3244, 3691, 4194, 4783, 5419, 6121, 6893, 7780, 8617, 9766, 10790, 12060, 13340, 14851, 16231, 18210
Offset: 0

Views

Author

Ilya Gutkovskiy, Sep 14 2021

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Length@Flatten[Permutations/@IntegerPartitions[n,5,Select[Range@n,!PrimeQ@#&]],1],{n,0,50}] (* Giorgos Kalogeropoulos, Sep 14 2021 *)
Showing 1-4 of 4 results.