Newfield Wireless
Work in HR? Unlock Free Profile

Newfield Wireless Software Engineer Interview Question

I interviewed in Berkeley, CA and was asked:
"Count the number of even-digit numbers below 10^9 that are divisible by 7 and 13."
Add Tags [?]

Part of a Software Engineer Interview Review - one of 17 Newfield Wireless Interview Reviews

Answers & Comments

of 0

First, The number which is divisible by 7 and 13 will be multiple of (7*13=91) 91.
so X=10^9-(10^9 % 91) will give the largest number lessthan 10^9 which is divisible by both 7 and 13.
X/91=10989010 will give the number of digit which is divisible by 7 and 13.
since we need only even number lets divide it by two (10989010 / 2= 5494505)

so it has 5494505 even-digit below 10^9 that are divisible by 7 and 13.

- Prakash Perumal on Apr 11, 2014

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.