cancel
Showing results for
Did you mean:

# Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!
New content is available in Academy! You may need to clear your browser cache for an optimal viewing experience

## Challenge #176: Math Class Drill

Alteryx
Spoiler

Oops, stuck in the spoiler tag, but nice one this week
Bolide

solution attached

Atom

My Solution

Spoiler
Bolide

This was a fun little challenge!! I realize that I could have done this in fewer tools, but I wanted to make it flexible enough to handle different numbers of digits.

Spoiler

Extending to other digit counts:

I added a workflow constant to try the same pattern with other digit counts...

There are no solutions for 2 digits (where digit1^2 + digit2^2 = number)

Four digits: (e.g. 1^4 + 6^4 + 3^4 + 4^4 = 1,634)

Five digits:

Six digits:

Seven digits: (at this point, with 9,000,000 possible numbers, it had a 38.5 s run time)
Example: 1^7 + 7^7 + 4^7 + 1^7 + 7^7 + 2^7 + 5^7 = 1 + 823,543 + 16,384 + 1 + 823,543 + 128 + 78,125 = 1,741,725

Asteroid

Not very efficient but it gets the job done.

Asteroid

Fun challenge! Here is my solution:

Spoiler
Asteroid

My solution..  Fun one!

Spoiler
Atom

Good luck chaps.

Spoiler

Asteroid
Not the most efficient, but got it done!
Asteroid

All,

Intermediate Challenge can mean a great deal of things as this one wasn't too bad for me.

Spoiler
I used the Left and Right Functions after using Make Rows starting at 100 and the iterating to 999 to give me the run of the numbers.
Cheers!

Matt