[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

1804.0. "Expression is non-prime" by AUSSIE::GARSON (Hotel Garson: No Vacancies) Wed Oct 06 1993 03:06

             4    n
Prove that  n  + 4  is non-prime for all n > 1.
T.RTitleUserPersonal
Name
DateLines
1804.1HANNAH::OSMANsee HANNAH::IGLOO$:[OSMAN]ERIC.VT240Wed Oct 06 1993 13:5416
>             4    n
>Prove that  n  + 4  is non-prime for all n > 1.




n^4 + 4^n = n^4 + (2^n)^2 = (n^2)^2 + (2^n)^2 = a^2 + b^2



Am I close ?

/Eric


1804.2RUSURE::EDPAlways mount a scratch monkey.Wed Oct 06 1993 16:3429
    Re .0:
    
    Solution found with help of computer algebra:
    
    Divide n by 10, yielding n = 10*q + r.
    
    If r is even, then n^4+4^n is clearly even and greater than 2, so it is
    composite.
    
    If r is 1, 3, 7, or 9, then n^4 is congruent to 1 modulo 5.  And n is
    odd for these r, so 4^n is congruent to 4 modulo 5, so n^4+4^n is
    divisible by 5 and clearly greater than 5.
    
    If r is 5, then n^4+4^n = (10*q+5)^4 + 4^(10*q+5) =
    
    	[   2^(10*q+5) - 5*(2q+1)*2^(5q+3) + 25(2q+1)^2   ] *
    	[   2^(10*q+5) + 5*(2q+1)*2^(5q+3) + 25(2q+1)^2   ].

    Both factors are clearly greater than one when q is non-negative, so
    n^4+4^n is composite in all cases when n>1.
    
    Derive provided the factorization easily; Maple did not.
    
    
    				-- edp
    
    
Public key fingerprint:  8e ad 63 61 ba 0c 26 86  32 0a 7d 28 db e7 6f 75
To get PGP, FTP /pub/unix/security/crypt/pgp23A.zip from nic.funet.fi.
1804.3AUSSIE::GARSONHotel Garson: No VacanciesWed Oct 06 1993 21:4871
1804.4RUSURE::EDPAlways mount a scratch monkey.Thu Oct 07 1993 11:4211
    Re .3:
    
    > I don't know whether you can persuade Derive to spot it.
    
    Yes, when I enter n^4+4^n and substitute 2j+1 for n, Derive factors the
    result easily.  It works surprisingly well in factoring and simplifying
    expressions, handling cases that Maple does not or that Maple is
    awkward at.
    
    
    				-- edp
1804.5.3 is obvious in hindsight!TROOA::RITCHEFrom the desk of Allen Ritche...Thu Oct 07 1993 17:4722
1804.6RUSURE::EDPAlways mount a scratch monkey.Thu Oct 07 1993 19:0317
    Re .5:
    
    Derive is a symbolic math program available from Soft Warehouse, 3660
    Waialae Avenue, Suite 304, Honolulu, HI, 96816-3236.  It is also sold
    by Educalc, 1-800-677-7001.  It runs under DOS on PCs, including the
    HP-95 palmtop.  It has an excellent character-based interface; it
    manages to draw expressions reasonably well.  It's not as fancy as
    Maple with a Windows interface, and it doesn't have the humongous
    library of functions, but it actually does better than Maple and
    Mathematica at many factorizations and simplifications.
    
    
    				-- edp
    
    
Public key fingerprint:  8e ad 63 61 ba 0c 26 86  32 0a 7d 28 db e7 6f 75
To get PGP, FTP /pub/unix/security/crypt/pgp23A.zip from nic.funet.fi.
1804.7AUSSIE::GARSONHotel Garson: No VacanciesFri Oct 08 1993 02:0131
1804.8yupHERON::BUCHANANThe was not found.Fri Oct 08 1993 10:0127
1804.9CFSCTC::GILBERTFri Oct 08 1993 16:593
    What about n^6 + 6^n ?

    What about n^5 + 5^n ?  Does it generate an infinite number of primes?
1804.10AUSSIE::GARSONHotel Garson: No VacanciesSat Oct 09 1993 03:1050