[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference rusure::math

Title:Mathematics at DEC
Moderator:RUSURE::EDP
Created:Mon Feb 03 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2083
Total number of notes:14613

1212.0. "f: NxN <-> N" by HERON::BUCHANAN (combinatorial bomb squad) Mon Mar 26 1990 14:31

(Stolen from the "Emperor's New Mind" by Roger Penrose, a book that I
don't understand entirely yet, to put it mildly.)

	Is there a quadratic function on x and y (ax�+bxy+cy�+dx+ey+f)
which induces a one-to-one correspondence between (x,y) the pairs of
natural numbers and the naturals themselves.   ie: each (x,y) under this
function goes to a *different* natural number, and each natural n is the
image of some pair under this function)?

	If you can find such a function, can you find any others?   How
many are there?

Regards,
Andrew.
T.RTitleUserPersonal
Name
DateLines
1212.14GL::GILBERTOwnership ObligatesTue Mar 27 1990 14:2612
The function (x�+2xy+y�+3x+y)/2 induces the mapping:

(0,0) -> 0	(0,1) -> 1	(0,2) -> 3	(0,3) -> 6	(0,4) -> 10
		(1,0) -> 2	(1,1) -> 4	(1,2) -> 7	(1,3) -> 11
				(2,0) -> 5	(2,1) -> 8	(2,2) -> 12
						(3,0) -> 9	(3,1) -> 13
								(4,0) -> 14
It may be better understood in the form:

	(x+y)(x+y+1)
	------------  +  x
	     2
1212.2from the same pen as 919.1...HERON::BUCHANANcombinatorial bomb squadWed Mar 28 1990 12:559
	Yes, that's it.   Strange:  I'd never thought of this packing
algorirhm as having a simple quadratic form until it was pointed out
to me.

	Clearly there's another solution with x <-> y.   Any others?
(I dunno, and haven't looked.)

Regards,
Andrew.
1212.3AITG::DERAMODan D&#039;Eramo, nice personWed Mar 28 1990 15:5711
        re .2
        
>>        Strange:  I'd never thought of this packing algorirhm as
>>        having a simple quadratic form until it was pointed out
>>        to me.
        
        Yes, same here.  I had just assumed it would involve some
        kind of "if ... then formula_1 else formula_2"
        definition.
        
        Dan