Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A090025
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A090025 Number of distinct lines through the origin in 3-dimensional cube of side length n. +0
12
0, 7, 19, 49, 91, 175, 253, 415, 571, 805, 1033, 1423, 1723, 2263, 2713, 3313, 3913, 4825, 5491, 6625, 7513, 8701, 9811, 11461, 12637, 14497, 16045, 18043, 19807, 22411, 24163, 27133, 29485, 32425, 35065, 38593, 41221, 45433, 48727, 52831 (list; graph; listen)
OFFSET

0,2

COMMENT

Equivalently, lattice points where the GCD of all coordinates = 1.

FORMULA

a(n) = A090030(3, n)

a(n) = Sum(moebius(k)*((floor(n/k)+1)^3-1), k=1..n). - Vladeta Jovovic (vladeta(AT)eunet.rs), Dec 03 2004

EXAMPLE

a(2) = 19 because the 19 points with at least one coordinate=2 all make distinct lines and the remaining 7 points and the origin are on those lines.

MATHEMATICA

aux[n_, k_] := If[k == 0, 0, (k + 1)^n - k^n - Sum[aux[n, Divisors[k][[i]]], {i, 1, Length[Divisors[k]] - 1}]]; lines[n_, k_] := (k + 1)^n - Sum[Floor[k/i - 1]*aux[n, i], {i, 1, Floor[k/2]}] - 1; Table[lines[3, k], {k, 0, 40}]

CROSSREFS

Cf. A000225, A001047, A060867, A090020, A090021, A090022, A090023, A090024 are for n dimensions with side length 1, 2, 3, 4, 5, 6, 7, 8, respectively. A049691, A090025, A090026, A090027, A090028, A090029 are this sequence for 2, 3, 4, 5, 6, 7 dimensions. A090030 is the table for n dimensions, side length k.

Cf. A071778.

Sequence in context: A000491 A097039 A067651 this_sequence A003232 A018728 A027523

Adjacent sequences: A090022 A090023 A090024 this_sequence A090026 A090027 A090028

KEYWORD

nonn

AUTHOR

Joshua Zucker (joshua.zucker(AT)stanfordalumni.org), Nov 25 2003

page 1

Search completed in 0.004 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 24 23:16 EST 2009. Contains 167481 sequences.


AT&T Labs Research