Sunday, 25 October 2009

#33

This can be found using a simple list comprehension. Just then multiply and collect.
let s = [(a,b) | a<-[10..99], b<-[a+1..99], a*mod b 10 == b*div a 10, a`mod`10==b`div`10]
There are only 4 entries so this can be done by hand :)

No comments:

Post a Comment