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!)
A194081 Smallest m such that A005375(m) = n. 2

%I #20 Nov 21 2013 13:12:29

%S 0,1,3,4,5,6,8,10,11,13,14,15,17,18,19,20,22,23,24,25,27,29,30,31,32,

%T 34,36,37,39,40,41,42,44,46,47,49,50,51,53,54,55,56,58,60,61,63,64,65,

%U 67,68,69,70,72,73,74,75,77,79,80,82,83,84,86,87,88,89

%N Smallest m such that A005375(m) = n.

%C A005375(a(n)) = n and A005375(m) <> n for m < a(n).

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

%H <a href="/index/Ho#Hofstadter">Index entries for Hofstadter-type sequences</a>

%H <a href="/index/Go#GEB">Index entries for sequences from "Goedel, Escher, Bach"</a>

%t a[0] := 0; a[n_] := a[n] = a[n] = n - a[a[a[a[n - 1]]]]; Table[Select[Range[0, 199], a[#] == n &][[1]], {n, 0, 65}] (* _Alonso del Arte_, Aug 17 2011 *)

%o (Haskell)

%o import Data.List (elemIndex)

%o import Data.Maybe (fromJust)

%o a194081 n = a194081_list !! n

%o a194081_list = map (fromJust . (`elemIndex` a005375_list)) [0..]

%K nonn

%O 0,3

%A _Reinhard Zumkeller_, Aug 17 2011

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