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. This is your one-stop shop for quickly levelling up your serverless skills.
- I help clients launch product ideas, improve their development processes and upskill their teams. If you’d like to work together, then let’s get in touch.
- Join my community on Discord, ask questions, and join the discussion on all things AWS and Serverless.
