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!)
A337110 Number of length three 1..n vectors that contain their geometric mean. 4
1, 2, 3, 10, 11, 12, 13, 20, 33, 34, 35, 42, 43, 44, 45, 64, 65, 78, 79, 86, 87, 88, 89, 96, 121, 122, 135, 142, 143, 144, 145, 164, 165, 166, 167, 198, 199, 200, 201, 208, 209, 210, 211, 218, 231, 232, 233, 252, 289, 314, 315, 322, 323, 336, 337, 344, 345, 346 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
From David A. Corneth, Aug 26 2020: (Start)
If x^2 == 0 (mod n) has only 1 solution then a(n) = a(n-1) + 1. Proof:
Let (a, b, n) be such a tuple. Let without loss of generality b be the geometric mean of the tuple. Then a*b*n = b^3 and as b is not 0 we have b^2 = a*n. So then b^2 == 0 (mod n). If b^2 == 0 (mod n) has only 1 solution then b = n. This gives the tuple (n, n, n) which has 1 permutation. So giving a(n) = a(n-1) + 1. (End)
LINKS
Hywel Normington, Python code, 2020.
Hywel Normington, Julia code, 2023.
FORMULA
a(n) = a(n-1) + 1 + 6*A057918(n).
EXAMPLE
For n = 2, the a(2) = 2 solutions are: (1,1,1) and (2,2,2).
For n = 4, the a(4) = 10 solutions are: (1,1,1),(2,2,2),(3,3,3),(4,4,4) and the 6 permutations of (1,2,4).
PROG
(PARI) first(n) = {my(s = 0, res = vector(n)); for(i = 1, n, s+=b(i); res[i] = s ); res }
b(n) = { my(s = factorback(factor(n)[, 1]), res = 1); for(i = 1, n \ s - 1, c = (s*i)^2/n; if(denominator(c) == 1 && c <= n, res+=6; ) ); res } \\ David A. Corneth, Aug 26 2020
CROSSREFS
Sequence in context: A069967 A061909 A345358 * A007961 A212067 A060811
KEYWORD
nonn,easy
AUTHOR
Hywel Normington, Aug 16 2020
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 April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)