The last three digits of 240 is the same as the remainder when 240 is divided by 1,000 240=(210)4=(1024)4 1,024 when divided by 1,000, the remainder = 24 (1024)2 when divided by 1,000, the remainder =242=576 (1024)4 when divided by 1,000, the remainder =(576)2=776