[go: up one dir, main page]

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!)
Revision History for A262412 (Underlined text is an addition; strikethrough text is a deletion.)

Showing all changes.
A262412 A262411 in ternary representation.
(history; published version)
#4 by Reinhard Zumkeller at Tue Sep 22 15:05:40 EDT 2015
STATUS

editing

approved

#3 by Reinhard Zumkeller at Tue Sep 22 14:53:27 EDT 2015
COMMENTS

a(n) = A007089(A262411(n)).

EXAMPLE

See A262411.

PROG

(Haskell)

import Data.List (inits, tails, intersect, delete)

a262412 n = a262412_list !! (n - 1)

a262412_list = 1 : f [1] (drop 2 a030341_tabf) where

f xs tss = g tss where

g (ys:yss) | null (intersect its $ tail $ inits ys) &&

null (intersect tis $ init $ tails ys) = g yss

| otherwise = (foldr (\t v -> 10 * v + t) 0 ys) :

f ys (delete ys tss)

its = init $ tails xs; tis = tail $ inits xs

-- Reinhard Zumkeller, Sep 22 2015

CROSSREFS

Cf. A030341, A007089, A262411.

KEYWORD

nonn,changed,base

#2 by Reinhard Zumkeller at Tue Sep 22 14:51:38 EDT 2015
NAME

allocatedA262411 forin Reinhardternary Zumkellerrepresentation.

DATA

1, 10, 11, 12, 2, 20, 22, 21, 100, 101, 102, 110, 111, 112, 120, 121, 122, 200, 202, 201, 212, 210, 221, 211, 222, 220, 1002, 1001, 1000, 1010, 1011, 1012, 1021, 1020, 1101, 1022, 1102, 1110, 1100, 1111, 1112, 1120, 1121, 1122, 1201, 1200, 1211, 1202, 1212

OFFSET

1,2

LINKS

Reinhard Zumkeller, <a href="/A262412/b262412.txt">Table of n, a(n) for n = 1..10000</a>

KEYWORD

allocated

nonn

AUTHOR

Reinhard Zumkeller, Sep 22 2015

STATUS

approved

editing

#1 by Reinhard Zumkeller at Tue Sep 22 09:06:03 EDT 2015
NAME

allocated for Reinhard Zumkeller

KEYWORD

allocated

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 August 30 09:28 EDT 2024. Contains 375532 sequences. (Running on oeis4.)