I wrote a horrid little script to just brute-force de Bruijn sequences. It just runs through the digits in sequence, backtracking if necessary. I stopped it at 400 digits since it’s really slow, but you can definitely see that the higher digits are used less than the lower ones. Not terribly surprising since it only uses a higher digit when it absolutely needs to; it can frequently get away with a smaller one.
Clearly, the first rule that Indistinguishable mentioned would produce normal sequences; these are just disjunctive. At least they seem like it. I wonder if the statistics converge to some value. I’ll bet they do, because the influence of the substring criterion goes down rapidly as the strings get longer, because there exponentially more possibilities but only linearly more chances of a collision. At a certain point, you barely have to check for a collision because the odds go down so rapidly.
The histograms look a bit weird to me. It’s not a curve that I’ve really seen before, like an exponential or Pareto distribution. Instead, it has an early drop, and then levels off for a bit, and then has an extra dip near the end. I dunno, maybe just an artifact of the limited samples, but it seems strange.
I also collected some stats on the number of places between each instance of the largest digit (value n-1 for base n). Just eyeballing things, most spacing is approximately N (what you would expect if it were random), but there are huge outliers. Base 8, for instance:
7, 12, 10, 8, 6, 4, 2, 0, 98, 2, 8, 8, 8, 8, 5, 2, 2, 2, 2, 2, 56, 8, 8, 8, 8, 5, 2, 2, 2, 2, 34, 8, 8, 8, 5, 2, 2
Low numbers are common, but there’s a 98, 56, and 34 in there. Weird.
[spoiler]base 3:
01200221100010111210202122201001101021002000021111022001211201122020122121202222101201010000011100100210101210002010200102210012020020202201100220210211011020111112000122000222002120011202112110212101121211101222111221022212012122112222202212201200000020011000010001102101100111100021000022000012001001010102010002210100121010220101101110100201101202100102020001021110020210121100122100012120002022102000
histo:
0: 162
1: 131
2: 111
base 4:
01230020311332210001011021112003013022023103212131222323303331320100111002101020000221101201121022200121122012212020131003101321030003200230103120302021223021300133003301130303131103310232022311113133112312123211322032222132303232233123320332133302333323130120001100000120210010002001021020101002011010121002200021100122002020021200112010220103010030010320111101112110202203002131010330000302103100031
histo:
0: 132
1: 104
2: 91
3: 74
base 5:
01234002030411314224433210001011021112003103201300401402202302403303410420431141212213222312413313421432324233343440441444243010011100210102000022102220012010300030112103110121103310032112201130122211320023101310232020124000410042104001321202121302022300141014200430024102420143021311113300332031203220333013322123014400340104120402041303022401140044013402140303130403140404141104320422044202431044303
histo:
0: 112
1: 87
2: 77
3: 66
4: 59
base 6:
012345002030405113141522425335544321000101102111200310320130041042022043014005015023024025033034035044045105205305411421213221431151222312412513313413514414521531542252323324333423524424532543435344454550551552555354010011100210102000022102220012010300030104000401121031101211033100321122011301140122113200231013102320201240013212021223001410042104110431044101420043203120322023300241024201430033204020
histo:
0: 100
1: 82
2: 74
3: 58
4: 52
5: 36
base 7:
01234560020304050611314151622425263353644665543210001011021112003103201300410420220430140051052053023033054015006016024025026034035036044045046055056106206306406511421213221431152153122231331541161241251261341351361441451461551562163164165225323243325422623334235236244245246255256326426533634344354445346355356436545464555656606616626636664650100111002101020000221022200120103000301040004010500050112
histo:
0: 79
1: 62
2: 58
3: 51
4: 51
5: 51
6: 49
base 8:
01234567002030405060711314151617224252627335363744647557766543210001011021112003103201300410420220430140051052053023033054015006106206306402403404406501600701702502602703503603704504604705505605706606710720730740750761142121322143115215312223133154116216316412413414416511712512612713513613714514614715515615716616721731741751762253232433254226326423334244265227235236237245246247255256257266267327427
histo:
0: 63
1: 63
2: 62
3: 46
4: 44
5: 43
6: 43
7: 37
base 9:
01234567800203040506070811314151617182242526272833536373844647485575866887765432100010110211120031032013004104202204301400510520530230330540150061062063064024034044065016007107207307407502503504505507601700801802602702803603703804604704805605705806606706807707810820830840850860871142121322143115215312223133154116216316412413414416511721731741751251351451551761181261271281361371381461471481561571581
histo:
0: 80
1: 71
2: 40
3: 38
4: 38
5: 38
6: 34
7: 34
8: 28
base 10:
01234567890020304050607080911314151617181922425262728293353637383944647484955758596686977998876543210001011021112003103201300410420220430140051052053023033054015006106206306402403404406501600710720730740750250350450550760170081082083084085086026036046056066087018009019027028029037038039047048049057058059067068069077078079088089109209309409509609709811421213221431152153122231331541162163164124134144
histo:
0: 99
1: 48
2: 38
3: 36
4: 36
5: 31
6: 31
7: 28
8: 28
9: 26[/spoiler]