We're asked to use Euler's Theorem to prove this.
What I've tried:
ϕ(1729)=ϕ(7)ϕ(13)ϕ(19)=1296 .
If (a,n)=1 then a12961(mod 1729) . I note that 1296=362 and that something equivalent to what I need to prove is
a(a361)0(mod 1729).

I am now wondering what are the conditions for anbn(mod m) implying ab(mod m) so then I can say (a36)361(mod 1729) implies a361(mod 1729) at which point the equivalent statement would be true.
 
                        
 
It is not much more work (and more insightful) to prove the general case, a variant of which characterizes Carmichael numbers (composites that behave like primes do in little Fermat).
Theorem (Korselt's Pseudoprime Criterion)   For 1<e,nN we have
aZ: naea  n  is  squarefree,  and  p1e1 for all primes  pn

Proof   ()   Since a squarefree natural divides another iff all its prime factors do, we need only show paea for each prime pn, i.e. that a0ae11  (mod p), which, since p1e1, follows from a0ap11  (mod p), by little Fermat.
()   Given that naea for all aZ, we must show
(1)  n is squarefree,and(2)  pnp1e1

(1)   If n isn't squarefree then 1a2naeaa2a⇒⇐ (note  e>1a2ae)
(2)   Let  a  be a generator of the multiplicative group of Z/p. Thus  a  has order p1. Now pna(ae11) but pa, so ae11 (mod p), therefore e1 must be divisible by p1, the order of  a (mod p). QED
  • Thank you very much, I like this. If I can find a proof using Euler's theorem I could come back and submit that as well. – Frudrururu Mar 25 '13 at 2:17
                
 
I think it's better to think about this problem using the Chinese remainder theorem. That is, since we have the ring isomorphism Z/1729Z/7×Z/13×Z/19 , via the map m(m mod 7, m mod 13, m mod 19) , it is enough to verify that a37=a mod x where x is any one of 7,13 and 19 . But this follows from Fermat's little theorem.
 
 
        
 
                
 
Fermat's Little Theorem is weak. No wonder it's called "little". Euler's Theorem is also pathetic. What you gotta use is Carmichael's Theorem. It states that if (a,n)=1 , then aλ(n)1modn . To calculate λ(n) , let the prime factorization of n be piai. Then we have
λ(n)=lcm[λ(p1a1),λ(p2a2)...λ(pkak)]

It may help to know that for p>2 , k0 , we have λ(pk)=ϕ(pk) .
Furthermore, λ(2n)=aϕ(2n) where a=1 if n2 and a=0.5 otherwise.
We compute λ(1729)=lcm[λ(7),λ(13),λ(19)]=lcm(6,12,18)=36 and the result follows.
As an added bonus, you cannot get any better than this. λ(n) is the lowest number such that (a,n)=1, aλ(n)1modn