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-5 of 5 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

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 *)

A347799 Number of compositions (ordered partitions) of n into at most 6 nonprime parts.

Original entry on oeis.org

1, 1, 1, 1, 2, 3, 5, 6, 10, 16, 19, 31, 44, 52, 86, 101, 148, 206, 237, 350, 441, 551, 743, 900, 1151, 1470, 1782, 2216, 2762, 3287, 4072, 4894, 5835, 7052, 8362, 9856, 11758, 13710, 16066, 18791, 21799, 25271, 29192, 33583, 38485, 44178, 50304
Offset: 0

Views

Author

Ilya Gutkovskiy, Sep 14 2021

Keywords

Crossrefs

Programs

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

A358639 Number of partitions of n into at most 3 distinct nonprime parts.

Original entry on oeis.org

1, 1, 0, 0, 1, 1, 1, 1, 1, 2, 3, 2, 2, 3, 4, 5, 5, 4, 6, 7, 7, 8, 10, 9, 11, 13, 14, 14, 16, 15, 20, 20, 21, 21, 27, 26, 30, 29, 32, 33, 39, 35, 43, 42, 46, 46, 53, 49, 58, 58, 63, 61, 69, 64, 77, 75, 81, 78, 90, 85, 98, 95, 102, 100, 114, 106, 122, 116, 126, 124, 140
Offset: 0

Views

Author

Ilya Gutkovskiy, Nov 24 2022

Keywords

Crossrefs

Showing 1-5 of 5 results.