Cantor Expansion Addition algorithm?

Click For Summary
The discussion centers on the need for an algorithm to add two Cantor expansions. The user provides a procedure for converting a decimal number to Cantor expansion but seeks assistance with the addition process. There is a lack of responses, with one participant admitting unfamiliarity with Cantor expansions. The conversation highlights the challenge of finding support for niche mathematical concepts. The user expresses frustration over the lack of help in developing the addition algorithm.
raross
Messages
12
Reaction score
0
Could someone help me and write an algorithm to add 2 Cantor expansions. The algorithm to get a decimal number to cantor expansion is:

procedure decimal-to-cantor(x: positive integer)
n := 1
y := x fy is a temporary variable used so that
this procedure won't destroy the original value of x.g
while y 6= 0
begin
an := y mod (n+1)
y := (y-an )/(n+1)
n := n + 1
end
f The expansion for x will be an n! + an−1 (n-1)! + : : : + a22! + a1 . g

Now i just need to figure out how to add 2 cantor expansion numbers together to get one. Someone help please!
 
Physics news on Phys.org
How come no one can help me ? =/
 
Well, I can't because I've never heard of a Cantor expansion before (at least not by that name).
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

Replies
32
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K