login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A366461 a(n) = number of partitions of n that have the maximum number of neighbors; see Comments. 1
1, 2, 1, 2, 1, 1, 2, 1, 6, 1, 2, 1, 6, 2, 1, 2, 1, 6, 2, 8, 1, 2, 1, 6, 2, 8, 1, 1, 2, 1, 6, 2, 8, 1, 6, 1, 2, 1, 6, 2, 8, 1, 6, 22, 1, 2, 1, 6, 2, 8, 1, 6, 22, 2, 1, 2, 1, 6, 2, 8, 1, 6, 22, 2, 8, 1, 2, 1, 6, 2, 8, 1, 6, 22, 2, 8, 30, 1, 2, 1, 6, 2, 8, 1, 6, 22 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Partitions p and q of n are neighbors if d(p,q) = 2, where d is the distance function in A366156.
LINKS
EXAMPLE
Refer to the Example in A366429 to see that a(5) = 1.
MATHEMATICA
c[n_] := PartitionsP[n];
q[n_, k_] := q[n, k] = IntegerPartitions[n][[k]];
r[n_, k_] := r[n, k] = Join[q[n, k], ConstantArray[0, n - Length[q[n, k]]]];
d[u_, v_] := d[u, v] = Total[Abs[u - v]];
s[n_, k_] := s[n, k] = Select[Range[c[n]], d[r[n, k], r[n, #]] == 2 &]
t[n_] := t[n] = Table[s[n, k], {k, 1, c[n]}]
a[n_] := Max[Map[Length, t[n]]]
b[n_] := b[n] = Select[t[n], Length[#] == a[n] &]
e[n_] := Length[b[n]]
Table[e[n], {n, 1, 24}]
CROSSREFS
Sequence in context: A309852 A029810 A321601 * A261122 A115660 A128581
KEYWORD
nonn
AUTHOR
Clark Kimberling, Oct 12 2023
EXTENSIONS
More terms from Pontus von Brömssen, Oct 24 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 30 06:10 EDT 2024. Contains 373861 sequences. (Running on oeis4.)