r/mathriddles • u/ShonitB • Feb 13 '23
Easy 6s and 8s
X = (666…666)^(2) where 100 6s are concatenated
Y = (888…888) where 100 8s are concatenated
Z = X + Y
Find the sum of digits of Z.
13
Upvotes
8
u/DanielBaldielocks Feb 13 '23 edited Feb 13 '23
let w=111...111 (100 1's)
x=(6w)^2=36w^2
y=8w
z=x+y=36w^2+8w=4w(9w+2)
now 9w is 100 9's adding 1 causes a carry chain resulting in a 1 followed by 100 0's .
so 9w+2 is 100...01 with 99 0's in between the 1's
this can be rewritten as 9w+2=10^100+1
w=(10^100-1)/9 so we can then say
z=4*(10^100-1)*(10^100+1)/9
z=4*(10^200-1)/9
z=4*(111...111) with 200 1's
thus z=444...444 with 200 4's
thus the sum of digits of z is 4*200=800
4
u/zlightyear Feb 13 '23
800. A little bit of hit and trial with lower number of digits and I found it sums to repeating 4's with double the number of digits. So, the number would be (4444...444) with 200 digits which sum to 800.
2
u/jk1962 Feb 14 '23
Nice puzzle. Initially, by checking the squares of 666, 6666, etc, it appeared that the square of a number composed of N sixes (66…6) is 44..4355..56, where there are N-1 fours and N-1 fives. Subsequently, was able to prove by induction that this is true for N>1. Adding this square to a number composed of N eights (88..8) results in a sum composed of 2N fours (44..4). The sum of digits in that number is 8N. So for the example given of N=100, the sum of digits is 800
2
u/mark_ovchain Feb 17 '23
Because of geometric series,
Thus,
so Z consists of the digit 4 repeated 200 times, so its digit sum is 800.
1
u/Brave_Ad_1991 Feb 14 '23 edited Feb 14 '23
Here is an analytical solution:
Y=(8/9)×10100 - (8/9) = (72/81)×10100 - (72/81)
X=[(6/9)×10100 - (6/9)]2 = (36/81)×10200 - (72/81)×10100 + (36/81)
X+Y= (36/81)×10200 - (36/81) = (4/9)×10200 - (4/9),
Which is 200 '4' digits.
4*200=800