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!)
A246436 Number of numbers 1,...,n not occurring in the Collatz trajectory starting with n. 2
0, 0, 0, 1, 1, 0, 2, 4, 2, 4, 4, 3, 6, 4, 8, 11, 8, 4, 8, 12, 15, 10, 14, 13, 11, 16, 17, 12, 15, 19, 21, 26, 16, 22, 26, 16, 19, 21, 21, 31, 28, 34, 23, 28, 31, 34, 34, 36, 29, 29, 33, 40, 43, 36, 40, 36, 33, 39, 37, 44, 47, 45, 48, 57, 42, 41, 45, 53, 56 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,7
COMMENTS
a(n) = n - A159999(n).
LINKS
EXAMPLE
8-4-2-1: a(8) = #{3,5,6,7} = 4;
9-28-14-7-22-11-34-17-52-26-13-40-20-10-5-16-8-4-2-1: a(9) = #{3,6} = 2;
10-5-16-8-4-2-1: a(10) = #{3,6,7,9} = 4;
11-34-17-52-26-13-40-20-10-5-16-8-4-2-1: a(11) = #{3,6,7,9} = 4;
12-6-3-10-5-16-8-4-2-1: a(12) = #{7,9,11} = 3.
MATHEMATICA
Table[Length[Complement[Range[n], NestWhileList[If[EvenQ[#], #/2, 3#+1]&, n, #>1&]]], {n, 70}] (* Harvey P. Dale, May 27 2018 *)
PROG
(Haskell)
import Data.List ((\\), genericIndex)
a246436 n = length $ [1..n] \\ genericIndex a220237_tabf (n - 1)
CROSSREFS
Sequence in context: A184186 A004020 A363290 * A143235 A069465 A047947
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Sep 01 2014
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 23 11:35 EDT 2024. Contains 371912 sequences. (Running on oeis4.)