A004000
A004000 is a sequence in the On-Line Encyclopedia of Integer Sequences (OEIS). It is defined as the sequence of integers n such that n divides the sum of the cubes of the integers from 1 to n. In other words, for a given integer n, the condition for it to be in the sequence A004000 is that (1^3 + 2^3 + ... + n^3) mod n = 0.
The sum of the first n cubes is given by the formula (n(n+1)/2)^2. Therefore, the condition for
The first few terms of the sequence A004000 are 1, 2, 3, 4, 6, 8, 12, 16,
The sequence has been studied in number theory, and it is related to properties of divisibility. It