The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation. Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A320263 Write n in binary, then modify each run of 0's and each run of 1's by prepending a 0. a(n) is the decimal equivalent of the result. 2

%I

%S 1,4,3,8,17,12,7,16,33,68,35,24,49,28,15,32,65,132,67,136,273,140,71,

%T 48,97,196,99,56,113,60,31,64,129,260,131,264,529,268,135,272,545,

%U 1092,547,280,561,284,143,96,193,388,195,392,785,396,199,112,225,452,227

%N Write n in binary, then modify each run of 0's and each run of 1's by prepending a 0. a(n) is the decimal equivalent of the result.

%C A variation of A175046. Indices of record values are given by A319423.

%H Chai Wah Wu, <a href="/A320263/b320263.txt">Table of n, a(n) for n = 1..10000</a>

%H Chai Wah Wu, <a href="https://arxiv.org/abs/1810.02293">Record values in appending and prepending bitstrings to runs of binary digits</a>, arXiv:1810.02293 [math.NT], 2018.

%F a(n) = A320262(n)/2.

%e 6 in binary is 110. Modify each run by prepending a 0 to get 01100, which is 12 in decimal. So a(6) = 12.

%o (Python)

%o from re import split

%o def A320263(n):

%o return int(''.join('0'+d for d in split('(0+)|(1+)',bin(n)[2:]) if d != '' and d != None),2)

%Y Cf. A175046, A319423, A320037, A320038, A320039, A320261, A320262.

%K nonn,base

%O 1,2

%A _Chai Wah Wu_, Oct 08 2018

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified May 9 12:26 EDT 2021. Contains 343740 sequences. (Running on oeis4.)
{"ft_lang_label":"__label__en","ft_lang_prob":0.6591593,"math_prob":0.9866496,"size":1094,"snap":"2021-21-2021-25","text_gpt3_token_len":457,"char_repetition_ratio":0.09633028,"word_repetition_ratio":0.013157895,"special_character_ratio":0.5786106,"punctuation_ratio":0.29275364,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9739268,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-05-09T16:37:50Z\",\"WARC-Record-ID\":\"<urn:uuid:70234359-5e13-4c54-bd67-857a755e20df>\",\"Content-Length\":\"9066\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:43df2db9-0dd5-4134-8d24-7ae3ae27a2a1>\",\"WARC-Concurrent-To\":\"<urn:uuid:b1b01c74-209c-4062-bca5-46352ea543e5>\",\"WARC-IP-Address\":\"104.239.138.29\",\"WARC-Target-URI\":\"https://oeis.org/A320263/internal\",\"WARC-Payload-Digest\":\"sha1:BHBSGX4I57DICSI47MIHLGJZTIA3E7BH\",\"WARC-Block-Digest\":\"sha1:H2EBTIJVSRF6MWZYMOPPCEMACGEJXWWO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-21/CC-MAIN-2021-21_segments_1620243989006.71_warc_CC-MAIN-20210509153220-20210509183220-00598.warc.gz\"}"}