Removing Cubes

Problem Statement

Starting from a positive integer $n$, at each step we subtract from $n$ the largest perfect cube not exceeding $n$, until $n$ becomes $0$.
For example, with $n = 100$ the procedure ends in $4$ steps: $$100 \xrightarrow{-4^3} 36 \xrightarrow{-3^3} 9 \xrightarrow{-2^3} 1 \xrightarrow{-1^3} 0.$$ Let $D(n)$ denote the number of steps of the procedure. Thus $D(100) = 4$.

Let $S(N)$ denote the sum of $D(n)$ for all positive integers $n$ strictly less than $N$.
For example, $S(100) = 512$.

Find $S(3^N)$.

Submit Answers

You need to submit in the format: "N:problem(N)", possibly with multiple values at once, separated by commas, with $N$ between $1$ and $100$.

Top Users

🥇 icy
50.14 (59)
🥈 shs10978
50.14 (51)
🥉 liuguangxi
50.14 (51)
4 abcvuitunggio
42.74 (50)
5 mmtg
20.00 (20)
6 Nondegon
17.00 (17)
7 jonnytang
8.00 (8)
8 redpo
0.06 (38)

Data

Stats

Your submissions will appear here

Recent Submissions

1
Nondegon
$g(17)$, $10$ digits 3 weeks, 3 days ago
2
Nondegon
$g(16)$, $9$ digits 3 weeks, 3 days ago
3
Nondegon
$g(15)$, $9$ digits 3 weeks, 3 days ago
4
Nondegon
$g(14)$, $8$ digits 3 weeks, 3 days ago
5
Nondegon
$g(13)$, $8$ digits 3 weeks, 3 days ago