Do powers of 256 all end by 6 and if so, how to prove it? [duplicate]












16












$begingroup$



This question already has an answer here:




  • product of two numbers ending in 6 also ends with 6

    2 answers




I computed the 10 first powers of 256 and I noticed that they all end by 6.



256^1 = 256
256^2 = 65536
256^3 = 16777216
256^4 = 4294967296
256^5 = 1099511627776
256^6 = 281474976710656
256^7 = 72057594037927936
256^8 = 18446744073709551616
256^9 = 4722366482869645213696
256^10 = 1208925819614629174706176


My intuition is that it is the same for all powers of 256 but I can't figure out how to prove it, any suggestion?



My attempt was to show that $forall n$ there is a $k$ such that $2^{8n} = k*10 + 6$, $k$ and $n$ being non null integers. I tried to decompose the right member in powers of $2$ but that leaves me stuck.










share|cite|improve this question











$endgroup$



marked as duplicate by Bill Dubuque modular-arithmetic
Users with the  modular-arithmetic badge can single-handedly close modular-arithmetic questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Feb 10 at 17:45


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • 2




    $begingroup$
    Arithmetic modulo 10, plus induction?
    $endgroup$
    – Lord Shark the Unknown
    Feb 10 at 12:11






  • 7




    $begingroup$
    not only 256 but the products of any values that end with 6. The same with numbers that end with 0, 1 or 5
    $endgroup$
    – phuclv
    Feb 10 at 12:56
















16












$begingroup$



This question already has an answer here:




  • product of two numbers ending in 6 also ends with 6

    2 answers




I computed the 10 first powers of 256 and I noticed that they all end by 6.



256^1 = 256
256^2 = 65536
256^3 = 16777216
256^4 = 4294967296
256^5 = 1099511627776
256^6 = 281474976710656
256^7 = 72057594037927936
256^8 = 18446744073709551616
256^9 = 4722366482869645213696
256^10 = 1208925819614629174706176


My intuition is that it is the same for all powers of 256 but I can't figure out how to prove it, any suggestion?



My attempt was to show that $forall n$ there is a $k$ such that $2^{8n} = k*10 + 6$, $k$ and $n$ being non null integers. I tried to decompose the right member in powers of $2$ but that leaves me stuck.










share|cite|improve this question











$endgroup$



marked as duplicate by Bill Dubuque modular-arithmetic
Users with the  modular-arithmetic badge can single-handedly close modular-arithmetic questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Feb 10 at 17:45


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • 2




    $begingroup$
    Arithmetic modulo 10, plus induction?
    $endgroup$
    – Lord Shark the Unknown
    Feb 10 at 12:11






  • 7




    $begingroup$
    not only 256 but the products of any values that end with 6. The same with numbers that end with 0, 1 or 5
    $endgroup$
    – phuclv
    Feb 10 at 12:56














16












16








16





$begingroup$



This question already has an answer here:




  • product of two numbers ending in 6 also ends with 6

    2 answers




I computed the 10 first powers of 256 and I noticed that they all end by 6.



256^1 = 256
256^2 = 65536
256^3 = 16777216
256^4 = 4294967296
256^5 = 1099511627776
256^6 = 281474976710656
256^7 = 72057594037927936
256^8 = 18446744073709551616
256^9 = 4722366482869645213696
256^10 = 1208925819614629174706176


My intuition is that it is the same for all powers of 256 but I can't figure out how to prove it, any suggestion?



My attempt was to show that $forall n$ there is a $k$ such that $2^{8n} = k*10 + 6$, $k$ and $n$ being non null integers. I tried to decompose the right member in powers of $2$ but that leaves me stuck.










share|cite|improve this question











$endgroup$





This question already has an answer here:




  • product of two numbers ending in 6 also ends with 6

    2 answers




I computed the 10 first powers of 256 and I noticed that they all end by 6.



256^1 = 256
256^2 = 65536
256^3 = 16777216
256^4 = 4294967296
256^5 = 1099511627776
256^6 = 281474976710656
256^7 = 72057594037927936
256^8 = 18446744073709551616
256^9 = 4722366482869645213696
256^10 = 1208925819614629174706176


My intuition is that it is the same for all powers of 256 but I can't figure out how to prove it, any suggestion?



My attempt was to show that $forall n$ there is a $k$ such that $2^{8n} = k*10 + 6$, $k$ and $n$ being non null integers. I tried to decompose the right member in powers of $2$ but that leaves me stuck.





This question already has an answer here:




  • product of two numbers ending in 6 also ends with 6

    2 answers








proof-writing modular-arithmetic exponentiation






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Feb 10 at 12:45









Jyrki Lahtonen

110k13172390




110k13172390










asked Feb 10 at 12:10









Mai KarMai Kar

836




836




marked as duplicate by Bill Dubuque modular-arithmetic
Users with the  modular-arithmetic badge can single-handedly close modular-arithmetic questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Feb 10 at 17:45


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by Bill Dubuque modular-arithmetic
Users with the  modular-arithmetic badge can single-handedly close modular-arithmetic questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Feb 10 at 17:45


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 2




    $begingroup$
    Arithmetic modulo 10, plus induction?
    $endgroup$
    – Lord Shark the Unknown
    Feb 10 at 12:11






  • 7




    $begingroup$
    not only 256 but the products of any values that end with 6. The same with numbers that end with 0, 1 or 5
    $endgroup$
    – phuclv
    Feb 10 at 12:56














  • 2




    $begingroup$
    Arithmetic modulo 10, plus induction?
    $endgroup$
    – Lord Shark the Unknown
    Feb 10 at 12:11






  • 7




    $begingroup$
    not only 256 but the products of any values that end with 6. The same with numbers that end with 0, 1 or 5
    $endgroup$
    – phuclv
    Feb 10 at 12:56








2




2




$begingroup$
Arithmetic modulo 10, plus induction?
$endgroup$
– Lord Shark the Unknown
Feb 10 at 12:11




$begingroup$
Arithmetic modulo 10, plus induction?
$endgroup$
– Lord Shark the Unknown
Feb 10 at 12:11




7




7




$begingroup$
not only 256 but the products of any values that end with 6. The same with numbers that end with 0, 1 or 5
$endgroup$
– phuclv
Feb 10 at 12:56




$begingroup$
not only 256 but the products of any values that end with 6. The same with numbers that end with 0, 1 or 5
$endgroup$
– phuclv
Feb 10 at 12:56










5 Answers
5






active

oldest

votes


















47












$begingroup$

$$(10x+6)(10y+6)=100xy+60 (x+y)+3color {red}6. $$






share|cite|improve this answer









$endgroup$













  • $begingroup$
    i.e. RHS $= 10(10xy!+!6(x!+!y)!+!3) + 6 = 10n+6,$ so it has units digit $= 6. $ By induction it follows that the product of any number of naturals all ending with $6$ also ends with $6 $
    $endgroup$
    – Bill Dubuque
    Feb 10 at 18:19












  • $begingroup$
    @BillDubuque The other question doesn't have an "answer", it has a "question". I'd say so.
    $endgroup$
    – Wolfgang Kais
    Feb 13 at 9:51



















12












$begingroup$

In $mathbb{Z}_{10}$ (the integers moduo $10$) we have that $6^2 = 6$, an idempotent, so all its positive powers are $6$ too. And $256 equiv 6 pmod{10}$.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    that is fascinating... can it be explained for people like me with a bit less experience with modular arithmetic?
    $endgroup$
    – don bright
    Feb 10 at 16:31










  • $begingroup$
    @donbright the last digit of a number $n$ is just its class modulo $10$. And if you want to answer questions about arithmetic modulo $10$ it makes sense to work in the ring (structure having $+,0,1,-,times$ with the usual rules) of all integers modulo $10$. You'll need a little bit of elementary algebra.
    $endgroup$
    – Henno Brandsma
    Feb 10 at 17:37



















7












$begingroup$

Let $P(n)$ be the statement that $6^n$ ends on $6$.



Then evidently $P(1)$ is true.



If $P(n)$ is true then it is not difficult to prove that also $P(n+1)$ is true (try it yourself).



According to the principle of induction on natural numbers we are allowed to conclude that $P(n)$ is true for every positive integer.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thank you, my maths are rusty I did not thought about induction, I managed to solve this using it ! I am still marking user's answer as accepted since it provides a quick explanation to this phenomenon. (And my upvotes are not displayed yet since I am new here)
    $endgroup$
    – Mai Kar
    Feb 10 at 12:45










  • $begingroup$
    You are welcome.
    $endgroup$
    – drhab
    Feb 10 at 12:49



















2












$begingroup$

Using the binomial theorem
$$256^n{pmod {10}}=(250+6)^n{pmod {10}}=6^n{pmod {10}}.$$
Now note that $$6^2{pmod {10}}=36{pmod {10}}=6{pmod {10}}$$ and thus $6^n{pmod {10}}=6{pmod {10}}$, completing the proof.






share|cite|improve this answer









$endgroup$





















    2












    $begingroup$

    We can prove this by complete induction:



    For $n = 1$, we have $256^n = 256^1 = 256$, which ends with a $6$.



    Now, let $256^n$ end with a $6$, so there is an integer $k ge 0$ such that $256^n = 10k+6$ and we have



    $$256^{n+1} = 256(10k+6) = 2560k+1536 = 10(256k+153)+6$$



    Therefore, $256^{n+1} = 10k'+6$ with $k'=256k+153$, and so also $256^{n+1}$ ends with a $6$.






    share|cite|improve this answer









    $endgroup$




















      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      47












      $begingroup$

      $$(10x+6)(10y+6)=100xy+60 (x+y)+3color {red}6. $$






      share|cite|improve this answer









      $endgroup$













      • $begingroup$
        i.e. RHS $= 10(10xy!+!6(x!+!y)!+!3) + 6 = 10n+6,$ so it has units digit $= 6. $ By induction it follows that the product of any number of naturals all ending with $6$ also ends with $6 $
        $endgroup$
        – Bill Dubuque
        Feb 10 at 18:19












      • $begingroup$
        @BillDubuque The other question doesn't have an "answer", it has a "question". I'd say so.
        $endgroup$
        – Wolfgang Kais
        Feb 13 at 9:51
















      47












      $begingroup$

      $$(10x+6)(10y+6)=100xy+60 (x+y)+3color {red}6. $$






      share|cite|improve this answer









      $endgroup$













      • $begingroup$
        i.e. RHS $= 10(10xy!+!6(x!+!y)!+!3) + 6 = 10n+6,$ so it has units digit $= 6. $ By induction it follows that the product of any number of naturals all ending with $6$ also ends with $6 $
        $endgroup$
        – Bill Dubuque
        Feb 10 at 18:19












      • $begingroup$
        @BillDubuque The other question doesn't have an "answer", it has a "question". I'd say so.
        $endgroup$
        – Wolfgang Kais
        Feb 13 at 9:51














      47












      47








      47





      $begingroup$

      $$(10x+6)(10y+6)=100xy+60 (x+y)+3color {red}6. $$






      share|cite|improve this answer









      $endgroup$



      $$(10x+6)(10y+6)=100xy+60 (x+y)+3color {red}6. $$







      share|cite|improve this answer












      share|cite|improve this answer



      share|cite|improve this answer










      answered Feb 10 at 12:14









      useruser

      6,46311031




      6,46311031












      • $begingroup$
        i.e. RHS $= 10(10xy!+!6(x!+!y)!+!3) + 6 = 10n+6,$ so it has units digit $= 6. $ By induction it follows that the product of any number of naturals all ending with $6$ also ends with $6 $
        $endgroup$
        – Bill Dubuque
        Feb 10 at 18:19












      • $begingroup$
        @BillDubuque The other question doesn't have an "answer", it has a "question". I'd say so.
        $endgroup$
        – Wolfgang Kais
        Feb 13 at 9:51


















      • $begingroup$
        i.e. RHS $= 10(10xy!+!6(x!+!y)!+!3) + 6 = 10n+6,$ so it has units digit $= 6. $ By induction it follows that the product of any number of naturals all ending with $6$ also ends with $6 $
        $endgroup$
        – Bill Dubuque
        Feb 10 at 18:19












      • $begingroup$
        @BillDubuque The other question doesn't have an "answer", it has a "question". I'd say so.
        $endgroup$
        – Wolfgang Kais
        Feb 13 at 9:51
















      $begingroup$
      i.e. RHS $= 10(10xy!+!6(x!+!y)!+!3) + 6 = 10n+6,$ so it has units digit $= 6. $ By induction it follows that the product of any number of naturals all ending with $6$ also ends with $6 $
      $endgroup$
      – Bill Dubuque
      Feb 10 at 18:19






      $begingroup$
      i.e. RHS $= 10(10xy!+!6(x!+!y)!+!3) + 6 = 10n+6,$ so it has units digit $= 6. $ By induction it follows that the product of any number of naturals all ending with $6$ also ends with $6 $
      $endgroup$
      – Bill Dubuque
      Feb 10 at 18:19














      $begingroup$
      @BillDubuque The other question doesn't have an "answer", it has a "question". I'd say so.
      $endgroup$
      – Wolfgang Kais
      Feb 13 at 9:51




      $begingroup$
      @BillDubuque The other question doesn't have an "answer", it has a "question". I'd say so.
      $endgroup$
      – Wolfgang Kais
      Feb 13 at 9:51











      12












      $begingroup$

      In $mathbb{Z}_{10}$ (the integers moduo $10$) we have that $6^2 = 6$, an idempotent, so all its positive powers are $6$ too. And $256 equiv 6 pmod{10}$.






      share|cite|improve this answer









      $endgroup$













      • $begingroup$
        that is fascinating... can it be explained for people like me with a bit less experience with modular arithmetic?
        $endgroup$
        – don bright
        Feb 10 at 16:31










      • $begingroup$
        @donbright the last digit of a number $n$ is just its class modulo $10$. And if you want to answer questions about arithmetic modulo $10$ it makes sense to work in the ring (structure having $+,0,1,-,times$ with the usual rules) of all integers modulo $10$. You'll need a little bit of elementary algebra.
        $endgroup$
        – Henno Brandsma
        Feb 10 at 17:37
















      12












      $begingroup$

      In $mathbb{Z}_{10}$ (the integers moduo $10$) we have that $6^2 = 6$, an idempotent, so all its positive powers are $6$ too. And $256 equiv 6 pmod{10}$.






      share|cite|improve this answer









      $endgroup$













      • $begingroup$
        that is fascinating... can it be explained for people like me with a bit less experience with modular arithmetic?
        $endgroup$
        – don bright
        Feb 10 at 16:31










      • $begingroup$
        @donbright the last digit of a number $n$ is just its class modulo $10$. And if you want to answer questions about arithmetic modulo $10$ it makes sense to work in the ring (structure having $+,0,1,-,times$ with the usual rules) of all integers modulo $10$. You'll need a little bit of elementary algebra.
        $endgroup$
        – Henno Brandsma
        Feb 10 at 17:37














      12












      12








      12





      $begingroup$

      In $mathbb{Z}_{10}$ (the integers moduo $10$) we have that $6^2 = 6$, an idempotent, so all its positive powers are $6$ too. And $256 equiv 6 pmod{10}$.






      share|cite|improve this answer









      $endgroup$



      In $mathbb{Z}_{10}$ (the integers moduo $10$) we have that $6^2 = 6$, an idempotent, so all its positive powers are $6$ too. And $256 equiv 6 pmod{10}$.







      share|cite|improve this answer












      share|cite|improve this answer



      share|cite|improve this answer










      answered Feb 10 at 12:24









      Henno BrandsmaHenno Brandsma

      116k349127




      116k349127












      • $begingroup$
        that is fascinating... can it be explained for people like me with a bit less experience with modular arithmetic?
        $endgroup$
        – don bright
        Feb 10 at 16:31










      • $begingroup$
        @donbright the last digit of a number $n$ is just its class modulo $10$. And if you want to answer questions about arithmetic modulo $10$ it makes sense to work in the ring (structure having $+,0,1,-,times$ with the usual rules) of all integers modulo $10$. You'll need a little bit of elementary algebra.
        $endgroup$
        – Henno Brandsma
        Feb 10 at 17:37


















      • $begingroup$
        that is fascinating... can it be explained for people like me with a bit less experience with modular arithmetic?
        $endgroup$
        – don bright
        Feb 10 at 16:31










      • $begingroup$
        @donbright the last digit of a number $n$ is just its class modulo $10$. And if you want to answer questions about arithmetic modulo $10$ it makes sense to work in the ring (structure having $+,0,1,-,times$ with the usual rules) of all integers modulo $10$. You'll need a little bit of elementary algebra.
        $endgroup$
        – Henno Brandsma
        Feb 10 at 17:37
















      $begingroup$
      that is fascinating... can it be explained for people like me with a bit less experience with modular arithmetic?
      $endgroup$
      – don bright
      Feb 10 at 16:31




      $begingroup$
      that is fascinating... can it be explained for people like me with a bit less experience with modular arithmetic?
      $endgroup$
      – don bright
      Feb 10 at 16:31












      $begingroup$
      @donbright the last digit of a number $n$ is just its class modulo $10$. And if you want to answer questions about arithmetic modulo $10$ it makes sense to work in the ring (structure having $+,0,1,-,times$ with the usual rules) of all integers modulo $10$. You'll need a little bit of elementary algebra.
      $endgroup$
      – Henno Brandsma
      Feb 10 at 17:37




      $begingroup$
      @donbright the last digit of a number $n$ is just its class modulo $10$. And if you want to answer questions about arithmetic modulo $10$ it makes sense to work in the ring (structure having $+,0,1,-,times$ with the usual rules) of all integers modulo $10$. You'll need a little bit of elementary algebra.
      $endgroup$
      – Henno Brandsma
      Feb 10 at 17:37











      7












      $begingroup$

      Let $P(n)$ be the statement that $6^n$ ends on $6$.



      Then evidently $P(1)$ is true.



      If $P(n)$ is true then it is not difficult to prove that also $P(n+1)$ is true (try it yourself).



      According to the principle of induction on natural numbers we are allowed to conclude that $P(n)$ is true for every positive integer.






      share|cite|improve this answer









      $endgroup$













      • $begingroup$
        Thank you, my maths are rusty I did not thought about induction, I managed to solve this using it ! I am still marking user's answer as accepted since it provides a quick explanation to this phenomenon. (And my upvotes are not displayed yet since I am new here)
        $endgroup$
        – Mai Kar
        Feb 10 at 12:45










      • $begingroup$
        You are welcome.
        $endgroup$
        – drhab
        Feb 10 at 12:49
















      7












      $begingroup$

      Let $P(n)$ be the statement that $6^n$ ends on $6$.



      Then evidently $P(1)$ is true.



      If $P(n)$ is true then it is not difficult to prove that also $P(n+1)$ is true (try it yourself).



      According to the principle of induction on natural numbers we are allowed to conclude that $P(n)$ is true for every positive integer.






      share|cite|improve this answer









      $endgroup$













      • $begingroup$
        Thank you, my maths are rusty I did not thought about induction, I managed to solve this using it ! I am still marking user's answer as accepted since it provides a quick explanation to this phenomenon. (And my upvotes are not displayed yet since I am new here)
        $endgroup$
        – Mai Kar
        Feb 10 at 12:45










      • $begingroup$
        You are welcome.
        $endgroup$
        – drhab
        Feb 10 at 12:49














      7












      7








      7





      $begingroup$

      Let $P(n)$ be the statement that $6^n$ ends on $6$.



      Then evidently $P(1)$ is true.



      If $P(n)$ is true then it is not difficult to prove that also $P(n+1)$ is true (try it yourself).



      According to the principle of induction on natural numbers we are allowed to conclude that $P(n)$ is true for every positive integer.






      share|cite|improve this answer









      $endgroup$



      Let $P(n)$ be the statement that $6^n$ ends on $6$.



      Then evidently $P(1)$ is true.



      If $P(n)$ is true then it is not difficult to prove that also $P(n+1)$ is true (try it yourself).



      According to the principle of induction on natural numbers we are allowed to conclude that $P(n)$ is true for every positive integer.







      share|cite|improve this answer












      share|cite|improve this answer



      share|cite|improve this answer










      answered Feb 10 at 12:14









      drhabdrhab

      104k545136




      104k545136












      • $begingroup$
        Thank you, my maths are rusty I did not thought about induction, I managed to solve this using it ! I am still marking user's answer as accepted since it provides a quick explanation to this phenomenon. (And my upvotes are not displayed yet since I am new here)
        $endgroup$
        – Mai Kar
        Feb 10 at 12:45










      • $begingroup$
        You are welcome.
        $endgroup$
        – drhab
        Feb 10 at 12:49


















      • $begingroup$
        Thank you, my maths are rusty I did not thought about induction, I managed to solve this using it ! I am still marking user's answer as accepted since it provides a quick explanation to this phenomenon. (And my upvotes are not displayed yet since I am new here)
        $endgroup$
        – Mai Kar
        Feb 10 at 12:45










      • $begingroup$
        You are welcome.
        $endgroup$
        – drhab
        Feb 10 at 12:49
















      $begingroup$
      Thank you, my maths are rusty I did not thought about induction, I managed to solve this using it ! I am still marking user's answer as accepted since it provides a quick explanation to this phenomenon. (And my upvotes are not displayed yet since I am new here)
      $endgroup$
      – Mai Kar
      Feb 10 at 12:45




      $begingroup$
      Thank you, my maths are rusty I did not thought about induction, I managed to solve this using it ! I am still marking user's answer as accepted since it provides a quick explanation to this phenomenon. (And my upvotes are not displayed yet since I am new here)
      $endgroup$
      – Mai Kar
      Feb 10 at 12:45












      $begingroup$
      You are welcome.
      $endgroup$
      – drhab
      Feb 10 at 12:49




      $begingroup$
      You are welcome.
      $endgroup$
      – drhab
      Feb 10 at 12:49











      2












      $begingroup$

      Using the binomial theorem
      $$256^n{pmod {10}}=(250+6)^n{pmod {10}}=6^n{pmod {10}}.$$
      Now note that $$6^2{pmod {10}}=36{pmod {10}}=6{pmod {10}}$$ and thus $6^n{pmod {10}}=6{pmod {10}}$, completing the proof.






      share|cite|improve this answer









      $endgroup$


















        2












        $begingroup$

        Using the binomial theorem
        $$256^n{pmod {10}}=(250+6)^n{pmod {10}}=6^n{pmod {10}}.$$
        Now note that $$6^2{pmod {10}}=36{pmod {10}}=6{pmod {10}}$$ and thus $6^n{pmod {10}}=6{pmod {10}}$, completing the proof.






        share|cite|improve this answer









        $endgroup$
















          2












          2








          2





          $begingroup$

          Using the binomial theorem
          $$256^n{pmod {10}}=(250+6)^n{pmod {10}}=6^n{pmod {10}}.$$
          Now note that $$6^2{pmod {10}}=36{pmod {10}}=6{pmod {10}}$$ and thus $6^n{pmod {10}}=6{pmod {10}}$, completing the proof.






          share|cite|improve this answer









          $endgroup$



          Using the binomial theorem
          $$256^n{pmod {10}}=(250+6)^n{pmod {10}}=6^n{pmod {10}}.$$
          Now note that $$6^2{pmod {10}}=36{pmod {10}}=6{pmod {10}}$$ and thus $6^n{pmod {10}}=6{pmod {10}}$, completing the proof.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Feb 10 at 12:17









          b00n heTb00n heT

          10.5k12335




          10.5k12335























              2












              $begingroup$

              We can prove this by complete induction:



              For $n = 1$, we have $256^n = 256^1 = 256$, which ends with a $6$.



              Now, let $256^n$ end with a $6$, so there is an integer $k ge 0$ such that $256^n = 10k+6$ and we have



              $$256^{n+1} = 256(10k+6) = 2560k+1536 = 10(256k+153)+6$$



              Therefore, $256^{n+1} = 10k'+6$ with $k'=256k+153$, and so also $256^{n+1}$ ends with a $6$.






              share|cite|improve this answer









              $endgroup$


















                2












                $begingroup$

                We can prove this by complete induction:



                For $n = 1$, we have $256^n = 256^1 = 256$, which ends with a $6$.



                Now, let $256^n$ end with a $6$, so there is an integer $k ge 0$ such that $256^n = 10k+6$ and we have



                $$256^{n+1} = 256(10k+6) = 2560k+1536 = 10(256k+153)+6$$



                Therefore, $256^{n+1} = 10k'+6$ with $k'=256k+153$, and so also $256^{n+1}$ ends with a $6$.






                share|cite|improve this answer









                $endgroup$
















                  2












                  2








                  2





                  $begingroup$

                  We can prove this by complete induction:



                  For $n = 1$, we have $256^n = 256^1 = 256$, which ends with a $6$.



                  Now, let $256^n$ end with a $6$, so there is an integer $k ge 0$ such that $256^n = 10k+6$ and we have



                  $$256^{n+1} = 256(10k+6) = 2560k+1536 = 10(256k+153)+6$$



                  Therefore, $256^{n+1} = 10k'+6$ with $k'=256k+153$, and so also $256^{n+1}$ ends with a $6$.






                  share|cite|improve this answer









                  $endgroup$



                  We can prove this by complete induction:



                  For $n = 1$, we have $256^n = 256^1 = 256$, which ends with a $6$.



                  Now, let $256^n$ end with a $6$, so there is an integer $k ge 0$ such that $256^n = 10k+6$ and we have



                  $$256^{n+1} = 256(10k+6) = 2560k+1536 = 10(256k+153)+6$$



                  Therefore, $256^{n+1} = 10k'+6$ with $k'=256k+153$, and so also $256^{n+1}$ ends with a $6$.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Feb 10 at 14:09









                  Wolfgang KaisWolfgang Kais

                  8165




                  8165















                      Popular posts from this blog

                      Questions related to Moebius Transform of Characteristic Function of the Primes

                      List of scandals in India

                      Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?