← RoseCode

ROSECODE 400

Ordinal numbers I

Philippe_57721 · Programming ·

Georg Cantor made many brillant discoveries, but the ones I find the most fascinating are in the realm of infinite sets, especially the Ordinal Numbers.

They are a new kind of numbers with some strange arithmetic rules :
(ω+1)+(ω2+ω×2+1)=ω2+ω×2+1
(ω2+ω×2+1)+(ω+1)=ω2+ω×3+1

Let the following ordinal numbers:
σ1=ω2
σ2=ω+1
σ3=ω×2+2
σ4=ω×4+3
σ5=ω×8+4

If we add the five σi ordinal numbers using all possible 120 permutations and sort them (using the ordinal number order)
- how many different sums can we obtain
- what is the 1st (lowest) value
- what is the 17th value

Answer format: comma delimited

The ordinal numbers are represented using the Cantor Normal Form
  • the symbol ω is represented with a w
  • exponentiation is represented with a ^
  • the symbol × is represented with a .
  • all spaces are removed
ω2+ω×3+1 w^2+w.3+1

[My timing : < 1 s]