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.

A226062 a(n) = Bulgarian solitaire operation applied to the partition encoded in the runlengths of binary expansion of n.

Original entry on oeis.org

0, 1, 3, 2, 13, 7, 6, 6, 11, 29, 15, 58, 9, 14, 4, 14, 19, 27, 61, 54, 245, 31, 122, 52, 27, 25, 30, 50, 25, 12, 12, 30, 35, 23, 59, 46, 237, 125, 118, 44, 235, 501, 63, 1002, 233, 250, 116, 40, 51, 19, 57, 38, 229, 62, 114, 36, 59, 17, 28, 34, 57, 8, 28, 62
Offset: 0

Views

Author

Antti Karttunen, Jul 06 2013

Keywords

Comments

For this sequence the partitions are encoded in the binary expansion of n in the same way as in A129594.
In "Bulgarian solitaire" a deck of cards or another finite set of objects is divided into one or more piles, and the "Bulgarian operation" is performed by taking one card from each pile, and making a new pile of them. The question originally posed was: on what condition the resulting partitions will eventually reach a fixed point, that is, a collection of piles that will be unchanged by the operation. See Martin Gardner reference and the Wikipedia-page.
A037481 gives the fixed points of this sequence, which are numbers that encode triangular partitions: 1 + 2 + 3 + ... + n.
A227752(n) tells how many times n occurs in this sequence, and A227753 gives the terms that do not occur here.
Of further interest: among each A000041(n) numbers j_i: j1, j2, ..., jk for which A227183(j_i)=n, how many cycles occur and what is the size of the largest one? (Both are 1 when n is in A000217, as then the fixed points are the only cycles.) Cf. A185700, A188160.
Also, A123975 answers how many Garden of Eden partitions there are for the deck of size n in Bulgarian Solitaire, corresponding to values that do not occur as the terms of this sequence.

Examples

			5 has binary expansion "101", whose runlengths are [1,1,1], which are converted to nonordered partition {1+1+1}.
6 has binary expansion "110", whose runlengths are [1,2] (we scan the runs of bits from right to left), which are converted to nonordered partition {1+2}.
7 has binary expansion "111", whose list of runlengths is [3], which is converted to partition {3}.
In "Bulgarian Operation" we subtract one from each part (with 1-parts vanishing), and then add a new part of the same size as there originally were parts, so that the total sum stays same.
Thus starting from a partition encoded by 5, {1,1,1} the operation works as 1-1, 1-1, 1-1 (all three 1's vanish) but appends part 3 as there originally were three parts, thus we get a new partition {3}. Thus a(5)=7.
From the partition {3} -> 3-1 and 1, which gives a new partition {1,2}, so a(7)=6.
For partition {1+2} -> 1-1 and 2-1, thus the first part vanishes, and the second is now 1, to which we add the new part 2, as there were two parts originally, thus {1+2} stays as {1+2}, and we have reached a fixed point, a(6)=6.
		

References

  • Martin Gardner, Colossal Book of Mathematics, Chapter 34, Bulgarian Solitaire and Other Seemingly Endless Tasks, pp. 455-467, W. W. Norton & Company, 2001.

Crossrefs

Cf. A037481 (gives the fixed points).
Cf. A227752 (how many times n occurs here).
Cf. A227753 (numbers that do not occur here).
Cf. A129594 (conjugates the partitions encoded with the same system).

Formula

Other identities:
A227183(a(n)) = A227183(n). [This operation doesn't change the total sum of the partition.]
a(n) = A243354(A242424(A243353(n))).
a(n) = A075158(A243051(1+A075157(n))-1).

A227753 Numbers which do not occur in A226062; numbers which encode Garden of Eden partitions in Bulgarian Solitaire in runlengths of their binary representation.

Original entry on oeis.org

5, 10, 18, 20, 21, 22, 26, 37, 41, 42, 43, 45, 53, 69, 73, 74, 75, 77, 81, 82, 83, 84, 85, 86, 87, 89, 90, 91, 93, 101, 105, 106, 107, 109, 117, 138, 146, 148, 149, 150, 154, 162, 164, 165, 166, 168, 169, 170, 171, 172, 173, 174, 178, 180, 181, 182, 186, 202
Offset: 1

Views

Author

Antti Karttunen, Jul 26 2013

Keywords

Comments

Positions of zeros in A227752.
A225794 gives the sizes of the corresponding partitions.

Crossrefs

After its first two initial terms, all the terms of A227451 can be found in this sequence.

A225794 Sizes of Garden of Eden partitions in Bulgarian Solitaire, given in the same order as the runlength codes of the corresponding partitions (A227753).

Original entry on oeis.org

3, 4, 6, 8, 5, 7, 5, 7, 9, 6, 10, 8, 6, 9, 11, 8, 12, 10, 13, 10, 14, 12, 7, 11, 15, 12, 9, 13, 11, 8, 10, 7, 11, 9, 7, 10, 12, 14, 9, 13, 11, 14, 16, 11, 15, 18, 13, 8, 14, 17, 12, 16, 13, 15, 10, 14, 12, 9, 11, 13, 8, 12, 10, 8, 12, 14, 16, 11, 15, 13, 16, 18
Offset: 1

Views

Author

Antti Karttunen, Jul 27 2013

Keywords

Comments

Each n occurs A123975(n) times in total.

Crossrefs

Programs

Formula

a(n) = A227183(A227753(n)).

A363230 Number of partitions of n with rank 3 or higher (the rank of a partition is the largest part minus the number of parts).

Original entry on oeis.org

0, 0, 0, 1, 1, 2, 3, 5, 7, 11, 14, 21, 28, 39, 51, 70, 90, 120, 154, 201, 256, 330, 415, 529, 662, 833, 1035, 1293, 1595, 1976, 2425, 2982, 3640, 4449, 5401, 6565, 7935, 9592, 11543, 13891, 16645, 19943, 23808, 28408, 33792, 40172, 47619, 56413, 66661, 78708, 92724, 109149, 128213, 150486, 176293
Offset: 1

Views

Author

Seiichi Manyama, May 22 2023

Keywords

Examples

			a(6) = 2 counts these partitions: 6, 5+1.
		

Crossrefs

With rank r or higher: A064174 (r=0), A064173 (r=1), A123975 (r=2), this sequence (r=3), A363231 (r=4).

Programs

  • PARI
    a(n) = sum(k=1, sqrtint(n), (-1)^(k-1)*numbpart(n-k*(3*k+5)/2));

Formula

G.f.: (1/Product_{k>=1} (1-x^k)) * Sum_{k>=1} (-1)^(k-1) * x^(k*(3*k+5)/2).
a(n) = p(n-4) - p(n-11) + p(n-21) - ... + (-1)^(k-1) * p(n-k*(3*k+5)/2) + ..., where p() is A000041().
a(n) ~ exp(Pi*sqrt(2*n/3)) / (8*n*sqrt(3)) * (1 - (1/(2*Pi) + 31*Pi/144) / sqrt(n/6)). - Vaclav Kotesovec, May 26 2023

A363231 Number of partitions of n with rank 4 or higher (the rank of a partition is the largest part minus the number of parts).

Original entry on oeis.org

0, 0, 0, 0, 1, 1, 2, 3, 5, 7, 11, 15, 21, 29, 40, 53, 72, 94, 124, 161, 209, 267, 343, 435, 551, 693, 870, 1084, 1351, 1672, 2066, 2542, 3121, 3815, 4658, 5664, 6875, 8319, 10049, 12102, 14553, 17452, 20894, 24959, 29766, 35420, 42089, 49911, 59100, 69856, 82452, 97152, 114324, 134315
Offset: 1

Views

Author

Seiichi Manyama, May 22 2023

Keywords

Comments

In general, for r>=0, Sum_{k>=1} (-1)^(k-1) * p(n - k*(3*k + 2*r - 1)/2) ~ exp(Pi*sqrt(2*n/3)) / (8*n*sqrt(3)) * (1 - (1/(2*Pi) + (12*r-5)*Pi/144) / sqrt(n/6)), where p() is the partition function. - Vaclav Kotesovec, May 26 2023

Examples

			a(7) = 2 counts these partitions: 7, 6+1.
		

Crossrefs

With rank r or higher: A064174 (r=0), A064173 (r=1), A123975 (r=2), A363230 (r=3), this sequence (r=4).

Programs

Formula

G.f.: (1/Product_{k>=1} (1-x^k)) * Sum_{k>=1} (-1)^(k-1) * x^(k*(3*k+7)/2).
a(n) = p(n-5) - p(n-13) + p(n-24) - ... + (-1)^(k-1) * p(n-k*(3*k+7)/2) + ..., where p() is A000041().
a(n) ~ exp(Pi*sqrt(2*n/3)) / (8*n*sqrt(3)) * (1 - (1/(2*Pi) + 43*Pi/144) / sqrt(n/6)). - Vaclav Kotesovec, May 26 2023
Showing 1-5 of 5 results.