Time flies while you're having fun, but then one day your bio says something about being a 30+ year veteran in software engineering. Still, I've not seen it all, let alone done it all (yet).
Trouble maker and Problem solver ⚙️🔧
Loves simplicity, hates bullshit 💩.
Productivity obsessed, avid learner 🖥🚀
Sport and outdoor freak 🧗⛰
Metalhead 🎸🤘 Father of 2 👨👩👦👦
Opinions are my own
Well, all the solutions are given by the integer solution to
Which is
As we know these are sequential, we only really need to know the inequality
As n needs to be an integer, we can write that like this:
So if we want a function that returns the lowest of the 4 number that satisfies the condition,
or in F#;
i guess i need some time to digest this..
I like this approach. Maybe it's only me but it still seems to sophisticated for 12 years old kids 😁