All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
A Quicky III (Posted on 2014-04-09) Difficulty: 1 of 5
If each of the a,b,c,d is a decimal digit - for how many ordered quadruplets (a,b,c,d) is the sum S= a+b+6c+d divisible by 3 ?

Answer: within 20 sec.

No Solution Yet Submitted by Ady TZIDON    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution computer solution | Comment 4 of 9 |

FOR a = 0 TO 9
FOR b = 0 TO 9
FOR d = 0 TO 9
  s = a + b + d
  IF s MOD 3 = 0 THEN ct = ct + 1
NEXT
NEXT
NEXT
PRINT ct

finds 334, disregarding c.

Any of the ten possible values of c will not affect the divisibility by 3 as the coefficient 6 ensures the entire term is divisible by 3.

The total number of ordered quadruplets meeting the criterion is 3340.



  Posted by Charlie on 2014-04-09 12:35:01
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (8)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information