Comments

@rapey the stick man, it has to do with different base counting systems. In decimal we think in base 10 so 25 = 2*10^1 +5×10^0. That is "dec" 25. Octal is base 8 so 10 in octal is the same as 8 in decimal. "oct" 31 = 3×8^3 + 1×8^0 = 24 + 1= 25 in decimal. So oct 31= dec 25. Just a little fun in changing base. This is also how we can use binary in computers to make calculations in decimal. Computer thinks in binary(base 2) then converts to decimal so we can see the answer.but binary is also good for logical statements, 1 if true and 0 if false. Different numeral systems can unlock a whole new way of thinking if you really look into it.

@DownvoterGuy, haha, yeah sorry about the long post but it is kind of a complicated process especially if you haven't seen any of it before. It's just realizing that there are different ways of counting. Imagine if everyone only had 8 fingers then we could count up to 8 and the would be the first 2 digit number(10). Then 64 would be the first 3 digit number(100). In base 8 counting to twenty would look like this 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 20, 21, 22, 23, 24. Because 24 In octal is 2*(8^1) + 4*(8^0) = 2*8 + 4*1 =16 + 4 =20 in decimal. There is no nine or ten in octal because it only has eight symbols to use 0 through 7. Strange, I know, but interesting.
Vote here for both Ruby and Sapphire.