Oasis, 4 bytes
Code:
nj+U
Explanation:
Extended version:
nj+00
0 = a(0)
0 = a(1)
a(n) =
n # Push n
j # Get the largest divisor under n
+ # Add to a(n - 1)
Adnan
- 44.7k
- 6
- 83
- 248
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange