Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A094533
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A094533 Number of one-element transitions among partitions of the integer n for labeled parts. +0
3
0, 0, 2, 8, 22, 48, 98, 178, 316, 524, 856, 1334, 2066, 3084, 4578, 6626, 9530, 13434, 18854, 26022, 35764, 48520, 65526, 87550, 116536, 153674, 201906, 263258, 342006, 441366, 567754, 726032, 925588, 1174010, 1484664, 1869072, 2346586, 2934044 (list; graph; listen)
OFFSET

0,3

LINKS

Thomas Wieder, Home Page.

Thomas Wieder, (old) Home Page.

FORMULA

a(n) = Sum_p=1^P(n) Sum_i=1^D(p) Sum_j=i^D(p) 1 [subject to: d(i, p) <= d(j, p) ]; P(n) = number of partitions of n, D(p) = number of digits in partition p, d(i, p) and d(j, p) = digits number i and j in partition p of integer n.

a(n) = Sum_i=1^P(n) p(i, n)^2 - p(i, n), where P(n) is the number of integer partitions of n and p(i, n) is the number of parts of the i-th partition of n.

EXAMPLE

In the labeled case we have 22 one-element transitions among all partitions of n=4:

[1,1,1,1] -> [1,1,2] arises 6 times (the first 1 added to the second 1 gives 2,

the first 1 added to the third 1 gives 2, the first 1 added to the fourth 1 gives 2, the second 1 added to the third 1 gives 2, the second 1 added to the fourth 1 gives 2, the third 1 added to the fourth 1 gives 2),

[1,1,2] -> [2,2] arises 1 times,

[1,1,2] -> [1,3] arises 2 times,

[2,2] -> [1,3] arises 1 times,

[1,3] -> [4] arises 1 time,

which gives 11 upwards transitions and 22 transitions in total if we include downwards transitions.

n=4: partition number p=1 is [1,1,1,1],

digits d(1,1)=1, d(2,1)=1 contribute 1,

digits d(1,1)=1, d(3,1)=1 contribute 1,

etc...

digits d(3,1)=1, d(4,1)=1 contribute 1,

(in total 6 contributions by [1,1,1,1]);

partition number p=2 is [1,1,2],

digits d(1,2)=1, d(2,2)=1 contribute 1,

digits d(1,2)=1, d(3,2)=2 contribute 1,

digits d(2,2)=1, d(3,2)=2 contribute 1;

partition number p=3 is [2,2],

digits d(1,3)=2, d(2,3)=2 contribute 1;

partition number p=4 is [1,3],

digits d(1,4)=1, d(2,4)=3 contribute 1;

partition number p=5 is [4],

digit d(1,5)=4 contributes 0;

MAPLE

main := proc(n::integer) local a, ndxp, ListOfPartitions, APartition, PartOfAPartition; with(combinat): ListOfPartitions:=partition(n); a:=0; for ndxp from 1 to nops(ListOfPartitions) do APartition := ListOfPartitions[ndxp]; a := a + nops(APartition)^2 - nops(APartition); end do; print("n, a(n):", n, a); end proc;

MATHEMATICA

(* first do *) Needs["DiscreteMath`Combinatorica`"] (* then *) a[n_] := Block[{p = Partitions[n], l = PartitionsP[n]}, Sum[ Length[p[[k]]]^2 - Length[p[[k]]], {k, l}]]; Table[ a[n], {n, 2, 37}] (from Robert G. Wilson v Jul 13 2004)

CROSSREFS

Cf. A093695.

Sequence in context: A085077 A153827 A137101 this_sequence A006696 A094939 A006732

Adjacent sequences: A094530 A094531 A094532 this_sequence A094534 A094535 A094536

KEYWORD

nonn

AUTHOR

Thomas Wieder (wieder.thomas(AT)t-online.de), Jun 05 2004

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Jul 13 2004

page 1

Search completed in 0.007 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 30 13:13 EST 2009. Contains 167758 sequences.


AT&T Labs Research