Find the highest -digit number with distinct non-zero digits and such that and that and are not equal to .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
using M a t h e m a t i c a
FromDigits/@Select[Permutations@Range@9,#[[1]](#[[2]]+#[[3]](#[[4]]+#[[5]](#[[6]]+#[[7]](#[[8]]+#[[9]]))))==2018&]
returns ALL possible numbers
{128754369,128754396,128934756,128934765,135798624,135798642,164782539,164782593,183492657,183492675,213847569,213847596,214936578,214936587,245968317,245968371,287536419,287536491,295864713,295864731,298546317,298546371}
so we start searching for the highest that meets the criteria
starting from the last one and... it is indeed the right one!
2 9 8 5 4 6 3 7 1