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!)
A127367 Inverse permutation to A127366. 2

%I #9 Jul 13 2013 12:03:27

%S 0,2,1,5,3,7,4,10,6,12,8,14,9,17,11,19,13,21,15,23,16,26,18,28,20,30,

%T 22,32,24,34,25,37,27,39,29,41,31,43,33,45,35,47,36,50,38,52,40,54,42,

%U 56,44,58,46,60,48,62,49,65,51,67,53,69,55,71,57,73,59,75,61,77,63,79,64

%N Inverse permutation to A127366.

%C Let m be the largest number such that n >= m(m+1). If n is even, a(n) = n - m; otherwise a(n) = n + m + 1.

%C a(A005408(n)) > 0; a(A005843(n)) <= 0. [_Reinhard Zumkeller_, Oct 12 2011]

%H Reinhard Zumkeller, <a href="/A127367/b127367.txt">Table of n, a(n) for n = 0..10000</a>

%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>

%o (Haskell)

%o a127367 n | even n = n - m + 1

%o | otherwise = n + m

%o where m = length $ takeWhile (<= n) a002378_list

%o -- _Reinhard Zumkeller_, Oct 12 2011

%Y Cf. A127366, A002378, A000194.

%Y Cf. A002378 (oblong numbers).

%K nonn

%O 0,2

%A _Franklin T. Adams-Watters_, Jan 11 2007

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 8 00:02 EDT 2024. Contains 372317 sequences. (Running on oeis4.)