Search code examples
assemblymodular-arithmetic

For the finite BYTE of Octal numbers


For the finite BYTE of Octal numbers R8 = {0,1,2,3,4,5,6,7,10,1,..,N}

The number in BYTE R8: N8 = (78)5 MOD (4008) = ___?______

Can someone please help me answer this. I got 2478, but I am unsure if this is correct.

Thank you


Solution

  • Yes, the result is correct. 7^5=16807, 400 octal is 256 decimal, 16807 mod 256 = 167 and 167 in octal is 247.

    You should have showed your steps like this in the question.