On the Subject of Organized UltraStores

Floating UFOs like you have never seen before.

This module consists of eight black buttons, a large central button, and sixty-four floating discs.

These discs travel in straight lines, remsembling rotations of a hexeract (6D cube).
These rotations correspond to functions in the tables below.

There are three stages, each with one more rotation than the previous.

There will be a long pause between rotations, indicating where the sequence restarts.

Apply each operation successively until the end of the sequence and use the result to determine the sequence of coloured buttons to press for each stage.

If at any point an operator yields-

  • a value greater than 364, then subtract 365 from the value until it is less than 365.
  • a value less than -364, then add 365 to the value until it is greater than -365.

Section 1: Determining Initial Values

To determine the number to be entered into the sequence of operators, interpret the following pairs of digits in the serial number as two-digit base-36 numbers and take them modulo 365:

  • For stage 1, a0 is obtained by using the 3rd and 4th digits.
  • For stage 2, b0 is obtained by using the 5th and 6th digits.
  • For stage 3, c0 is obtained by using the 1st and 2nd digits.

Section 2: Operation Tables

In each stage, each rotation is associated with an operation, expressed here as a function:

  • n is the current step of the sequence.
  • D is the sum of the individual base-36 digits of the serial number.
Stage 1 Stage 2 Stage 3
X XY a + D b + a c + b - a
XZ 2a - D 2b - a 2c - b - a
XU a + 365 - D b + 365 - abs(a) c + 365 - abs(a) - abs(b)
XV 2(D - a) 2b - 3(D - a) 2c - 4(D - b)
XW 2D - a 3D - b - a 4D - c - b - a
Y YX a - D b - a c - b + a
YZ a + 2D b + 2a c + 2b - a
YU 2a - 365 + D 2b - 365 + abs(a) 2c - 365 + abs(a) + abs(b)
YV a + (D % 6)^3 - 35*n b + (a % 7)^3 - 12*n^2 c + (b % 8)^3 - 5*n^3
YW 2a + D - 35*n 2b + abs(a) - 12*n^2 2c + abs(b) + abs(a) - 5*n^3
Z ZX 2a + D 2b + a b + a - 2c
ZY a - 2D b - 2a c + 2a - b
ZU a + 365 - 2D b + 365 - 2*abs(a) c + 365 - 2*abs(a) - 2*abs(b)
ZV (a - a % 2)/2 + D b + (b - b % 2)/2 - a (c - c % n)/n + 2b
ZW a + (a % 6)^3 b + (a % 7)^3 c + (b % 6)^3 + (a % 6)^3
U UX a - 365 - D b - 365 - abs(a) c - 365 + abs(a) - abs(b)
UY 2a - 365 - D 2b - 365 - abs(a) 2c - 365 + abs(a) - abs(b)
UZ a + 365 + 2D b + 365 + 2*abs(a) c + 365 + 2*abs(a) - 2*abs(b)
UV n * a - D n * (b - a - D) n * (c - a - b)
UW 365 - 2*abs(a) 365 - 2*abs(b) - abs(a) 365 - 2*abs(c) - abs(a) - abs(b)
V VX 2(D + a) 2b - 3(D + a) 2c - 4(D + b)
VY a - (D % 6)^3 - 35 * n b - (a % 7)^3 - 12 * n^2 c - (b % 8)^3 - 5 * n^3
VZ (a - a % 2)/2 - D b + (b - b % 2)/2 + a (c - c % n)/n - 2b
VU n * a n * (b - a) n * (c - a + b)
VW 5a + 3D 8b + 5D - 3a 13c + 8D - 5a + 3b
W WX 2D + a 3D + b - a 4D + c - b - a
WY 2a - D - 35 * n 2b - abs(a) - 12 * n^2 2c - abs(b) - abs(a) - 5 * n^3
WZ a - (a % 7)^3 b - (a % 6)^3 c - (b % 7)^3 - (a % 7)^3
WU 365 - abs(a) 365 - abs(b) - abs(a) 365 - abs(c) - abs(a) - abs(b)
WV 5a - 3D 8b - 5D + 3a 13c - 8D + 5a - 3b

Dual Rotations

These operators apply to the two functions corresponding to the individual rotations that occur simultaneously, referred to as R and S.

There will always be two axes that are unchanged, if these axes:

  • are both X, Y, or Z, then apply function X.
  • are both W, V, or U, then apply function Z.
  • do not satisfy one of the two above conditions, then apply function Y.
Stage 1 Stage 2 Stage 3
X 2D - abs(f(a) - f(a)) 3D - abs(f(b) + f(b)) 4D - abs(f(c)) - abs(f(c))
Y 2D - f(a) - f(a) 2a - f(b) - f(b) 2b - f(c) - f(c)
Z f(a) + f(a) - a f(b) + f(b) - b - a f(c) + f(c) - c - b - a

Triple Rotations

These operators apply to the three individual rotations that occur simultaneously, referred to as R,S, and T.

  • If each of the three rotations map an axis from one of X,Y,Z onto one of U,V,W or vice versa, apply function W.
  • Otherwise, apply function V.
Stage 1 Stage 2 Stage 3
W max(f(a), f(a), f(a)) - 2D f(b) + f(b) + f(b) - 3b f(c) + f(c) + f(c) - a - b - c
V min(f(a), f(a), f(a)) + 2D 3b - f(b) - f(b) - f(b) a + b + c - f(c) - f(c) - f(c)

Section 3: Converting Results

Once a result of the sequence of operations has been obtained, it must be converted into balanced ternary, a base-3 number system in which the digits have the values 1, 0, and -1. Find a sequence of these values such that multiplying them with each power of 3 from 30 = 1 (the “least significant”) to 35 = 243 (the “most significant”), and adding that up, results in the desired number.

OR use the result of the sequence of operations, and find the corresponding balanced ternary using Ctrl+F n=<value>

n=001+00000 n=002-+0000 n=0030+0000 n=004++0000 n=005--+000 n=0060-+000
n=007+-+000 n=008-0+000 n=00900+000 n=010+0+000 n=011-++000 n=0120++000
n=013+++000 n=014---+00 n=0150--+00 n=016+--+00 n=017-0-+00 n=01800-+00
n=019+0-+00 n=020-+-+00 n=0210+-+00 n=022++-+00 n=023--0+00 n=0240-0+00
n=025+-0+00 n=026-00+00 n=027000+00 n=028+00+00 n=029-+0+00 n=0300+0+00
n=031++0+00 n=032--++00 n=0330-++00 n=034+-++00 n=035-0++00 n=03600++00
n=037+0++00 n=038-+++00 n=0390+++00 n=040++++00 n=041----+0 n=0420---+0
n=043+---+0 n=044-0--+0 n=04500--+0 n=046+0--+0 n=047-+--+0 n=0480+--+0
n=049++--+0 n=050--0-+0 n=0510-0-+0 n=052+-0-+0 n=053-00-+0 n=054000-+0
n=055+00-+0 n=056-+0-+0 n=0570+0-+0 n=058++0-+0 n=059--+-+0 n=0600-+-+0
n=061+-+-+0 n=062-0+-+0 n=06300+-+0 n=064+0+-+0 n=065-++-+0 n=0660++-+0
n=067+++-+0 n=068---0+0 n=0690--0+0 n=070+--0+0 n=071-0-0+0 n=07200-0+0
n=073+0-0+0 n=074-+-0+0 n=0750+-0+0 n=076++-0+0 n=077--00+0 n=0780-00+0
n=079+-00+0 n=080-000+0 n=0810000+0 n=082+000+0 n=083-+00+0 n=0840+00+0
n=085++00+0 n=086--+0+0 n=0870-+0+0 n=088+-+0+0 n=089-0+0+0 n=09000+0+0
n=091+0+0+0 n=092-++0+0 n=0930++0+0 n=094+++0+0 n=095---++0 n=0960--++0
n=097+--++0 n=098-0-++0 n=09900-++0 n=100+0-++0 n=101-+-++0 n=1020+-++0
n=103++-++0 n=104--0++0 n=1050-0++0 n=106+-0++0 n=107-00++0 n=108000++0
n=109+00++0 n=110-+0++0 n=1110+0++0 n=112++0++0 n=113--+++0 n=1140-+++0
n=115+-+++0 n=116-0+++0 n=11700+++0 n=118+0+++0 n=119-++++0 n=1200++++0
n=121+++++0 n=122-----+ n=1230----+ n=124+----+ n=125-0---+ n=12600---+
n=127+0---+ n=128-+---+ n=1290+---+ n=130++---+ n=131--0--+ n=1320-0--+
n=133+-0--+ n=134-00--+ n=135000--+ n=136+00--+ n=137-+0--+ n=1380+0--+
n=139++0--+ n=140--+--+ n=1410-+--+ n=142+-+--+ n=143-0+--+ n=14400+--+
n=145+0+--+ n=146-++--+ n=1470++--+ n=148+++--+ n=149---0-+ n=1500--0-+
n=151+--0-+ n=152-0-0-+ n=15300-0-+ n=154+0-0-+ n=155-+-0-+ n=1560+-0-+
n=157++-0-+ n=158--00-+ n=1590-00-+ n=160+-00-+ n=161-000-+ n=1620000-+
n=163+000-+ n=164-+00-+ n=1650+00-+ n=166++00-+ n=167--+0-+ n=1680-+0-+
n=169+-+0-+ n=170-0+0-+ n=17100+0-+ n=172+0+0-+ n=173-++0-+ n=1740++0-+
n=175+++0-+ n=176---+-+ n=1770--+-+ n=178+--+-+ n=179-0-+-+ n=18000-+-+
n=181+0-+-+ n=182-+-+-+ n=1830+-+-+ n=184++-+-+ n=185--0+-+ n=1860-0+-+
n=187+-0+-+ n=188-00+-+ n=189000+-+ n=190+00+-+ n=191-+0+-+ n=1920+0+-+
n=193++0+-+ n=194--++-+ n=1950-++-+ n=196+-++-+ n=197-0++-+ n=19800++-+
n=199+0++-+ n=200-+++-+ n=2010+++-+ n=202++++-+ n=203----0+ n=2040---0+
n=205+---0+ n=206-0--0+ n=20700--0+ n=208+0--0+ n=209-+--0+ n=2100+--0+
n=211++--0+ n=212--0-0+ n=2130-0-0+ n=214+-0-0+ n=215-00-0+ n=216000-0+
n=217+00-0+ n=218-+0-0+ n=2190+0-0+ n=220++0-0+ n=221--+-0+ n=2220-+-0+
n=223+-+-0+ n=224-0+-0+ n=22500+-0+ n=226+0+-0+ n=227-++-0+ n=2280++-0+
n=229+++-0+ n=230---00+ n=2310--00+ n=232+--00+ n=233-0-00+ n=23400-00+
n=235+0-00+ n=236-+-00+ n=2370+-00+ n=238++-00+ n=239--000+ n=2400-000+
n=241+-000+ n=242-0000+ n=24300000+ n=244+0000+ n=245-+000+ n=2460+000+
n=247++000+ n=248--+00+ n=2490-+00+ n=250+-+00+ n=251-0+00+ n=25200+00+
n=253+0+00+ n=254-++00+ n=2550++00+ n=256+++00+ n=257---+0+ n=2580--+0+
n=259+--+0+ n=260-0-+0+ n=26100-+0+ n=262+0-+0+ n=263-+-+0+ n=2640+-+0+
n=265++-+0+ n=266--0+0+ n=2670-0+0+ n=268+-0+0+ n=269-00+0+ n=270000+0+
n=271+00+0+ n=272-+0+0+ n=2730+0+0+ n=274++0+0+ n=275--++0+ n=2760-++0+
n=277+-++0+ n=278-0++0+ n=27900++0+ n=280+0++0+ n=281-+++0+ n=2820+++0+
n=283++++0+ n=284----++ n=2850---++ n=286+---++ n=287-0--++ n=28800--++
n=289+0--++ n=290-+--++ n=2910+--++ n=292++--++ n=293--0-++ n=2940-0-++
n=295+-0-++ n=296-00-++ n=297000-++ n=298+00-++ n=299-+0-++ n=3000+0-++
n=301++0-++ n=302--+-++ n=3030-+-++ n=304+-+-++ n=305-0+-++ n=30600+-++
n=307+0+-++ n=308-++-++ n=3090++-++ n=310+++-++ n=311---0++ n=3120--0++
n=313+--0++ n=314-0-0++ n=31500-0++ n=316+0-0++ n=317-+-0++ n=3180+-0++
n=319++-0++ n=320--00++ n=3210-00++ n=322+-00++ n=323-000++ n=3240000++
n=325+000++ n=326-+00++ n=3270+00++ n=328++00++ n=329--+0++ n=3300-+0++
n=331+-+0++ n=332-0+0++ n=33300+0++ n=334+0+0++ n=335-++0++ n=3360++0++
n=337+++0++ n=338---+++ n=3390--+++ n=340+--+++ n=341-0-+++ n=34200-+++
n=343+0-+++ n=344-+-+++ n=3450+-+++ n=346++-+++ n=347--0+++ n=3480-0+++
n=349+-0+++ n=350-00+++ n=351000+++ n=352+00+++ n=353-+0+++ n=3540+0+++
n=355++0+++ n=356--++++ n=3570-++++ n=358+-++++ n=359-0++++ n=36000++++
n=361+0++++ n=362-+++++ n=3630+++++ n=364++++++

Section 4: Entry and Submission

To work out which buttons need to be pressed, first apply the list of conditions on the positions of buttons on the module to each row of the initial correspondences table, starting from the top of the list and working down.

Initial Correspondences 30 31 32 33 34 35
Stage 1 R G B C M Y
Stage 2 Y B M G R C
Stage 3 M C R Y G B

If... ..., then...
the top button is white reverse the sequence
the top right button is yellow cycle each colour one space to the left.
the white button is diametrically opposite the black button swap each colour with its diametric opposite on the module.
the red button is diametrically opposite the cyan button swap each colour with its complementary (R ↔ C, G ↔ M, B ↔ Y).
the green and magenta buttons have exactly one button between them cycle each colour in clockwise order of the colours on the module.
the green button is adjacent to the white button cycle the primary colours
(R → G, G → B, B → R).
the magenta button is adjacent to the black button cycle the secondary colours
(C → M, M → Y, Y → C).
the white button is adjacent to the black button cycle both the primary and secondary colours.
the blue and yellow buttons are on the same side of the module swap B with the colour opposite in the sequence.
the red button is on the right side of the module swap R and Y.
the blue button is on the left side of the module swap G and C.
starting from the white button, the yellow button is further clockwise than the green button swap the first and last colours in the sequence.
starting from the black button, the blue button is further clockwise than the cyan button swap the colours of the top and bottom buttons on the module
(only if neither are white or black).