[Haskell-cafe] complex multiplication function in Haskell

Gregory Popovitch greg7mdp at gmail.com
Wed Apr 26 12:39:13 UTC 2017


Maybe just enumerate the possibilities
 
1 * 1 = 1 => 111
1 * 2 = 2 => 112
1 * 3 = 3 => 113
...
2 * 1 = 2 => 212
...

  _____  

From: Haskell-Cafe [mailto:haskell-cafe-bounces at haskell.org] On Behalf Of
Mahmoud Murad
Sent: Wednesday, April 26, 2017 8:03 AM
To: haskell-cafe at haskell.org
Subject: [Haskell-cafe] complex multiplication function in Haskell


Hi there, 
The number 354162 has 6 digits and contains all digits from 1 to 6, and it
can be considered as a multiplication of 3 * 54 = 162.  
so what I need is a function that will take all the real number and return
the number that can be split as above,  
354162  .. 3 * 54 = 162   
I have no idea how to do such a thing! any help! 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170426/770eb82a/attachment.html>


More information about the Haskell-Cafe mailing list