The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A126025 Number of mappings f:{1,2,3,...,n} -> {1,2,3,...,n} such that gcd(f(x),f(y)) = f(gcd(x,y)) for all x,y in {1,2,3,...,n}. 2
1, 3, 9, 26, 106, 191, 954, 2427, 8404, 15945, 111952, 141117, 1176623, 2270566, 4477947, 10345290, 104257447, 145407966, 1633452518, 2517488363, 5024167821, 9148333241, 120260250853 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The greatest common divisor condition was suggested by A061446.
LINKS
Manfred Scheucher, Sage Script
Manfred Scheucher, C Code
PROG
(Haskell)
a126025 n = h n1s 0 where
h us c = if us == nns then c + 1 else h (succ us) (c + g) where
g = if and [f x `gcd` f y == f (x `gcd` y) |
x <- [1 .. n - 1], y <- [x + 1 .. n]] then 1 else 0
f = (us !!) . subtract 1
succ (z:zs) = if z < n then (z + 1) : zs else 1 : succ zs
n1s = take n [1, 1 ..]; nns = take n [n, n ..]
-- Reinhard Zumkeller, May 04 2014
CROSSREFS
Cf. A061446.
Cf. A000312.
Sequence in context: A148922 A148923 A058143 * A317497 A114181 A036134
KEYWORD
nonn,more,nice
AUTHOR
John W. Layman, Feb 27 2007
EXTENSIONS
a(10)-a(22) from Manfred Scheucher, Jun 06 2015
a(23) from Manfred Scheucher, Aug 13 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 29 03:17 EDT 2024. Contains 372921 sequences. (Running on oeis4.)