How many 9 digit no.s are divisible by 7

A.1256
b.1986
c.1524
d.1874
This question is related to Dell Interview

Showing Answers 1 - 15 of 15 Answers

nazoor

  • Jan 14th, 2008
 

Try this excel macro

Sub test()
k = 0
For i = 100000000 To 999999999

 If (i Mod 7 = 0) Then
 k = k + 1
 End If
 Next
 Cells(1, 1) = k
 
End Sub

Ans:

128571428

  Was this answer useful?  Yes

The 100000 first 9 digit number
First number divisible by 7 is 1000006 (First term)

Greatest 9 digit number is 9999999
and divisible by 7 is 9999997 (nth term)

9999997 equals 1000005+(n-1)7
Solving we get n equals 1285714

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions