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

Home > Numbers
Big difference (Posted on 2016-02-14) Difficulty: 3 of 5
Using all integers from 1 to 20, assign them into a 5 by 4 grid so that adjacent numbers (horizontally, vertically and diagonally) will differ by at least 4.

No Solution Yet Submitted by Ady TZIDON    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
re(3): computer solutions Comment 4 of 4 |
(In reply to re(2): computer solutions by Brian Smith)

When the corresponding line in the original program is changed to

               If Abs(newnum - grid(row + dr, col + dc)) < 5 Then bad = 1: Exit For

The program quickly goes through the possibilities and finds no solution where there is a difference of at least 5.

  Posted by Charlie on 2016-02-14 20:05:51
Please log in:
Remember me:
Sign up! | Forgot password

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

Copyright © 2002 - 2020 by Animus Pactum Consulting. All rights reserved. Privacy Information