|
|
|
|
![]() ![]() |
May 20 2008, 04:19 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 5 Joined: 20-May 08 Member No.: 62,415 |
While learning about infinite sets in functional programming, I remembered a program I'd written some time ago. I was interested in finding an arithmetic function that naturally produced a sudoku pattern. I was reading about Roman irregation and came across something called the Latin Square. It was a four by four grid filled with four different symbols such that no row or column contained the same symbol twice. The formula that generated this pattern was MMOD(5,[0,1,2,3,4]), which is basically modular times tables. Unforunately, the sodoku pattern only is observed when 5 is the first argument. The program demonstrates the odd patterns found by extracting primes and hammings from MMOD(n,[0..n-1]).
Source is here --> http://1stclick.co.uk/PMMOD/PMMOD.c Jason |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | ||||||
|---|---|---|---|---|---|---|---|
|
| ||||||
|
Lo-Fi Version | Time is now: 11th October 2008 - 11:55 PM |