[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

1370.0. "produce all integers from just 3, [sqrt] and !" by HANNAH::OSMAN (see HANNAH::IGLOO$:[OSMAN]ERIC.VT240) Thu Jan 10 1991 14:36

I can't remember if this was discussed in here yet or not.  In the 
brain_boggler's conference last year I pozed the puzzler of how  to produce
the number 4 from just 3 and factorial and integer square root.  Here's how
to get 1,2,3, and 5:

	1 = sqrt(3)			(sqrt means [sqrt] means integer sqrt)

	2 = sqrt(3!)

	3 = 3

	5 = sqrt(sqrt(3!!))

4 is harder to get, but someone finally answered in that notes file.

I think the original rec.puzzles article said Knuth claimed all integers
could be reached from 3, through proper application of integer sqrt and
factorial.

Can any of you readers explain the proof of this ?

If not, can you think of any ways to explore this on the computer ? 
Straight-forward means fail miserably due to the huge size that factorials
reach.

For instance, is there any way to evaluate things like:

	sqrt(sqrt(sqrt(3!!!!)))

without having to figure out all those extra digits of 3!!!!.  It seems a
shame to have to generate them if they're just going to be thrown away
again when we take integer square root.

Hmmm, I just thought of something:

	3! = 3 * 2 * 1 = 6
	3!! = 6! = 6 * 5 * 4 * 3 * 2 * 1
	    = 2^4 * 3^2 * 5   (writing 3!! as product of powers of primes)
	3!!! = (2^4 * 3^2 * 5)!
	    = ???

Any way we can get 3!!! as product of powers of primes without knowing that
it's 720! ?

If so, then we could come up with a way to represent any

	n!!!...!!

as a product of powers of primes.

Such a representation can easily be sqrted by just halving all the even
exponents (and doing I don't know what with the odd ones :-)

Anyone want to take on from here, or is this just pure mathematical rubbish ?

/Eric
T.RTitleUserPersonal
Name
DateLines
1370.1GUESS::DERAMODan D'EramoSun Jan 13 1991 18:1627
        We start with 3.
        
        Take isqrt and factorial of that and you add 1 and 6.
        
        Add in isqrt and factorial of those and you get 1, 1, 2,
        and 720.  We already have 1, so the new results were 2
        and 720.
        
        The next step adds 1, 2, 26, and 720!
        
        From here I will ignore the big numbers and the numbers
        already considered.  With that, the next steps reach:
        
        26 ->	5, 26!
        5 ->	2, 120
        120 ->	10, 120!
        10 ->	3, 3628800
        10! ->	1904, (10!)!
        1904 ->	43, 1904!
        43 ->	6, 43!
        
        6 was reached already.  So we have reached and continued
        from 1, 2, 3, 5, 6, 10, 26, 43, 120, 720, 1904, and 10!;
        and reached but not yet continued from 26!, 43!, 120!,
        720!, 1904!, and 3628800!.  Time to call in Captain Bignum :-)
        
        Dan
1370.2GUESS::DERAMODan D'EramoSun Jan 13 1991 23:5416
        4 was reached on the twentieth iteration.  You showed how
        to reach 5; 5! is 120; seven isqrt's of 120! is 35; six
        isqrt's of 35! is 4.  Using s for integer sqrt and f for
        factorial the sequence from left to right is
        
        	3ffssffsssssssfssssss is 4
        
        or in LISP, (isqrt (isqrt (isqrt (isqrt (isqrt (isqrt
        (factorial (isqrt (isqrt (isqrt (isqrt (isqrt (isqrt
        (isqrt (factorial (factorial (isqrt (isqrt (factorial
        (factorial 3))))))))))))))))))))
        
        There might be a shorter way; I did not check factorials
        of anything greater than 999.
        
        Dan
1370.3helpful direction suggesterHERON::BUCHANANHoldfast is the only dog, my duck.Mon Jan 14 1991 10:527
	I'm a long way from my desk here.   Can someone retrieve Stirling's
formula for the limiting behaviour of n!, together with its error term
(which I seem to recall is O(n/12)).   Maybe we can then say something more
solid about which n are achievable by Eric's rather strange mechanism.

Cheers,
Andrew.
1370.4ALLVAX::JROTHSaturday alley up to Sunday streetMon Jan 14 1991 11:236
    gamma(z) ~ exp(-z) z^(z-1/2) sqrt(2 pi) *

      [ 1 + 1/(12z) + 1/(288 z^2) - 139/(51840 z^3) - 571 / (24888320 z^4) ... ]

    - Jim
1370.5GUESS::DERAMODan D'EramoMon Jan 14 1991 12:433
        And n! = gamma(n+1).
        
        Dan
1370.6Another Hailstone?CIVAGE::LYNNLynn Yarbrough @WNP DTN 427-5663Mon Jan 14 1991 14:484
It looks offhand as though this problem is a variant of the Hailstone 
Problem, discussed elsewhere, and about as intractable. It will be 
interesting to see if this problem can be attacked by any methods that 
might then be applied to the other.
1370.7GUESS::DERAMODan D'EramoMon Jan 14 1991 19:058
        re .-1,
        
>> and about as intractable.
        
        Actually, the base note echoes a claim that this problem
        has been solved.
        
        Dan