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

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

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

A358640 Number of partitions of n into at most 4 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, 8, 8, 9, 11, 11, 13, 16, 17, 19, 21, 22, 26, 30, 30, 34, 39, 43, 47, 50, 53, 61, 67, 69, 76, 84, 89, 97, 106, 110, 121, 131, 139, 148, 160, 166, 181, 194, 204, 215, 233, 242, 262, 274, 289, 305, 329, 338, 361, 378
Offset: 0

Views

Author

Ilya Gutkovskiy, Nov 24 2022

Keywords

Crossrefs

Showing 1-5 of 5 results.