@naga25french
N = 444(upto 50 digits) except for the nth digit(where n ranges from 1-50). If N is divisible by 13 for nth digit, then find how many value can n take ?
Should Indeed be 24..
n=1, N=4, Rem[N/13] = 4
n=2, N=44, Rem[N/13]= 5
n=3, N=444, Rem[N/13]= 2, but if N=442, Its Divisible..
n=4, N=4444, Rem[N/13]=11, but if N=4446, Its Divisible..
n=5, N=44444, Rem[N/13]= 10, but if N=44447, Its Divisible..
n=6, N=444444, Rem[N/13]= 0..Hence N is itslf divisible..
n=7, N=4444444, Rem[N/13]= 4...and the cycle gets repeated..
Thus, for n= 1,2,3,4,5,6 ..there r 3 values at which this is satisfied..at n=3,4 n 5..
For, n=7,8,9,10,11,12..there r 3 values at which this is satifisfied..at n= 9,10 n 11..
.
.
.
For n = 43, 44, 45, 46, 47, 48..There r 3 values at which this is satisfied..at n= 45, 46 n 47..
For n=49 n 50..Its not satisfied..
Thus, a total of 3*8 = 24 values are there of n(1-50), at which the conditions r met..
Screwd the 1st tym..