Yan Cui
I help clients go faster for less using serverless technologies.
Problem
The series, 11 + 22 + 33 + … + 1010 = 10405071317.
Find the last ten digits of the series, 11 + 22 + 33 + … + 10001000.
Solution
let number = [1..1000] |> List.map (fun n -> pown (bigint(n)) n) |> List.sum let answer = number.ToString().ToCharArray() |> Array.rev |> Seq.take 10 |> Seq.toArray |> Array.rev
Whenever you’re ready, here are 3 ways I can help you:
- Production-Ready Serverless: Join 20+ AWS Heroes & Community Builders and 1000+ other students in levelling up your serverless game.
- Consulting: If you want to improve feature velocity, reduce costs, and make your systems more scalable, secure, and resilient, then let’s work together and make it happen.
- Join my FREE Community on Skool, where you can ask for help, share your success stories and hang out with me and other like-minded people without all the negativity from social media.