OFFSET
1,2
COMMENTS
Is this a permutation of the integers > 0 ?
From Robert Israel, May 20 2024: (Start)
Yes, this is a permutation of the positive integers.
For any positive integer k, there are arbitrarily large d such that 10^(d-1) > k and GCD(10^d + 1, k) == 1. For such d, there is n such that n == -10^d (10^d + 1)^(-1) (mod k) and 10^d > n >= 10^(d-1), and this implies that the concatenation of n+1 and n, which is 10^d * (n+1) + n, is divisible by k. After all numbers < k have occurred, the next such n must have a(n) = k. (End)
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Éric Angelini, Divisors of the concatenation of n+1 and n, SeqFan list, Jun 03 2015.
MAPLE
R:= NULL: S:= {}:
for n from 1 to 100 do
v:= 10^(1+ilog10(n))*(n+1)+n;
s:= min(numtheory:-divisors(v) minus S);
R:= R, s;
S:= S union {s};
od:
R; # Robert Israel, May 20 2024
PROG
(Haskell)
import Data.List (insert); import Data.List.Ordered (minus)
a256285 n = a256285_list !! (n-1)
a256285_list = f (tail a127423_list) [] where
f (x:xs) ds = y : f xs (insert y ds) where
y = head (a027750_row x `minus` ds)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric Angelini and Reinhard Zumkeller, Jun 03 2015
STATUS
approved