Balance of Integer Value: Solving (2^1000) / 7 for Remainder | Homework

  • Thread starter Thread starter thereddevils
  • Start date Start date
  • Tags Tags
    Remainder
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
thereddevils
Messages
436
Reaction score
0

Homework Statement



How much is the balance if u want to get integer value of ((2^1000) divided by 7))

Homework Equations





The Attempt at a Solution



I need a little hint to start off with an attempt.
 
Physics news on Phys.org
Since that is a rather large power of two, I suggest that you start with simple examples and see if you can find a pattern:

[itex]2^0= 1[/itex]. Remainder on division by 7: 1
[itex]2^1= 2[/itex]. Remainder on division by 7: 2
[itex]2^2= 4[/itex]. Remainder on division by 7: 4
[itex]2^3= 8[/itex]. Remainder on division by 7: 1
[itex]2^4= 16[/itex]. Remainder on division by 7: 2
[itex]2^5= 32[/itex]. Remainder on division by 7: 4
[itex]2^6= 64[/itex]. Remainder on division by 7: 1
[itex]2^7= 128[/itex]. Remainder on division by 7: 2
[itex]2^8= 256[/itex]. Remainder on division by 7: 4

Get the idea?
 
HallsofIvy said:
Since that is a rather large power of two, I suggest that you start with simple examples and see if you can find a pattern:

[itex]2^0= 1[/itex]. Remainder on division by 7: 1
[itex]2^1= 2[/itex]. Remainder on division by 7: 2
[itex]2^2= 4[/itex]. Remainder on division by 7: 4
[itex]2^3= 8[/itex]. Remainder on division by 7: 1
[itex]2^4= 16[/itex]. Remainder on division by 7: 2
[itex]2^5= 32[/itex]. Remainder on division by 7: 4
[itex]2^6= 64[/itex]. Remainder on division by 7: 1
[itex]2^7= 128[/itex]. Remainder on division by 7: 2
[itex]2^8= 256[/itex]. Remainder on division by 7: 4

Get the idea?

Thanks Hallsofivy!