The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A348532 a(n) is the number of multisets of integers that are possible to reach by starting with n occurrences of 0 and by splitting and reverse splitting. 1
1, 1, 2, 2, 7, 9, 43, 59, 338, 490, 3097, 4639, 31283, 48107, 338553, 531469, 3857036, 6157068, 45713546, 73996100 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Splitting is taking 2 occurrences of the same integer and incrementing one of them by 1 and decrementing the other occurrence by 1.
Reverse splitting is taking two elements with a difference of 2 and incrementing the smaller one by 1 and decrementing the larger one by 1. It is the opposite of splitting.
LINKS
FORMULA
It appears that a(n) = A000571(n) for odd n.
EXAMPLE
For n = 5, the multisets are as follows:
{{0,0,0,0,0}} {{-1,0,0,0,1}} {{-1,-1,0,1,1}}
{{-1,-1,0,0,2}} {{-1,-1,-1,1,2}} {{-2,0,0,1,1}}
{{-2,0,0,0,2}} {{-2,-1,1,1,1}} {{-2,-1,0,1,2}}.
Therefore, a(5) = 9.
For n = 6, the multisets are as follows:
{{0,0,0,0,0,0}} {{-1,0,0,0,0,1}} {{-1,-1,0,0,1,1}}
{{-1,-1,0,0,0,2}} {{-1,-1,-1,1,1,1}} {{-1,-1,-1,0,1,2}}
{{-1,-1,-1,0,0,3}}* {{-1,-1,-1,-1,2,2}}* {{-1,-1,-1,-1,1,3}}*
{{-2,0,0,0,1,1}} {{-2,0,0,0,0,2}} {{-2,-1,0,1,1,1}}
{{-2,-1,0,0,1,2}} {{-2,-1,0,0,0,3}}* {{-2,-1,-1,1,1,2}}
{{-2,-1,-1,0,2,2}} {{-2,-1,-1,0,1,3}} {{-2,-1,-1,-1,2,3}}*
{{-2,-2,1,1,1,1}}* {{-2,-2,0,1,1,2}} {{-2,-2,0,0,2,2}}
{{-2,-2,0,0,1,3}} {{-2,-2,-1,1,2,2}} {{-2,-2,-1,1,1,3}}
{{-2,-2,-1,0,2,3}} {{-2,-2,-2,2,2,2}}* {{-2,-2,-2,1,2,3}}*
{{-3,0,0,0,0,3}}* {{-3,0,0,0,1,2}}* {{-3,0,0,1,1,1}}*
{{-3,-1,1,1,1,1}}* {{-3,-1,0,1,1,2}} {{-3,-1,0,0,2,2}}
{{-3,-1,0,0,1,3}} {{-3,-1,-1,1,2,2}} {{-3,-1,-1,1,1,3}}
{{-3,-1,-1,0,2,3}} {{-3,-2,1,1,1,2}}* {{-3,-2,0,1,2,2}}
{{-3,-2,0,1,1,3}} {{-3,-2,0,0,2,3}} {{-3,-2,-1,2,2,2}}*
{{-3,-2,-1,1,2,3}}.
Therefore, a(6) = 43.
The ones marked with an asterisk are the ones that need reverse splitting
to be reached. They are not produced using the rules of A347913.
PROG
(Python)
def nextq(q):
used, used2 = set(), set()
for i in range(len(q)-1):
for j in range(i+1, len(q)):
if q[i] == q[j]:
if q[i] in used: continue
used.add(q[i])
qc = list(q); qc[i] -= 1; qc[j] += 1
yield tuple(sorted(qc))
elif q[j] - q[i] == 2: # assumes q is sorted
if q[i] in used2: continue
used2.add(q[i])
qc = list(q); qc[i] += 1; qc[j] -= 1
yield tuple(sorted(qc))
def a(n):
s = tuple(0 for i in range(n)); reach = {s}; expand = list(reach)
while len(expand) > 0:
q = expand.pop()
for qq in nextq(q):
if qq not in reach:
reach.add(qq)
expand.append(qq)
return len(reach)
print([a(n) for n in range(13)]) # Michael S. Branicky, Oct 21 2021
CROSSREFS
Sequence in context: A107386 A095021 A347913 * A275282 A307633 A101372
KEYWORD
nonn,more
AUTHOR
Tejo Vrush, Oct 21 2021
EXTENSIONS
a(6)-a(19) from Michael S. Branicky, Oct 21 2021
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 5 14:50 EDT 2024. Contains 373107 sequences. (Running on oeis4.)