login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A261971 Number of unit cubes that have a side on the surface of a p X p X p cube composed of p^3 unit cubes, where p is the n-th prime. 0
8, 26, 98, 218, 602, 866, 1538, 1946, 2906, 4706, 5402, 7778, 9602, 10586, 12698, 16226, 20186, 21602, 26138, 29402, 31106, 36506, 40346, 46466, 55298, 60002, 62426, 67418, 69986, 75266, 95258, 101402, 110978, 114266, 131426, 135002, 146018, 157466 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Inspired by geometric interpretation of A030078.
Obviously, there is only one solution for a, b and c to the equation p X p X p = a X b X c where p is prime, if a > 1, b > 1 and c > 1. So there can be only one rectangular prism that is composed of p^3 unit cubes, if a > 1, b > 1 and c > 1. That rectangular prism is the p X p X p cube. Its uniqueness is a motivation for this sequence.
The number of unit cubes that have a side on the surface of the p X p X p cube is p^3 - (p-2)^3 = 6*p^2 - 12*p + 8.
LINKS
FORMULA
a(n) = 6*prime(n)^2 - 12*prime(n) + 8 = 6*A001248(n) - 12*A000040(n) + 8.
EXAMPLE
For the 5 X 5 X 5 cube, composed of 125 unit cubes, there are 98 unit cubes that have a side on the surface of the cube.
MATHEMATICA
Table[6 Prime[n]^2 - 12 Prime[n] + 8, {n, 50}] (* Vincenzo Librandi, Sep 08 2015 *)
PROG
(PARI) vector(45, n, 6*prime(n)^2-12*prime(n)+8)
(PARI) a(n, p=prime(n))=6*p^2-12*p+8 \\ Charles R Greathouse IV, Sep 08 2015
(Magma) [6*NthPrime(n)^2-12*NthPrime(n)+8: n in [1..40]]; // Vincenzo Librandi, Sep 08 2015
CROSSREFS
Sequence in context: A278769 A357593 A173365 * A140788 A082573 A112645
KEYWORD
nonn,easy
AUTHOR
Altug Alkan, Sep 07 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 9 18:53 EDT 2024. Contains 372354 sequences. (Running on oeis4.)