login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A197945
Length of longest prefix of A096095(n) that is also a prefix of A096095(n+1).
2
1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 2, 1, 2, 1, 2, 4, 4, 6, 2, 6, 11, 8, 10, 22, 16, 33, 30, 34, 47, 57, 81, 86, 108, 112, 173, 200, 232, 303, 382, 465, 558, 656, 857, 1051, 1261, 1579, 1972, 2455, 2922, 3594, 4588, 5532, 6839, 8402, 10267, 12976, 15550
OFFSET
0,13
EXAMPLE
a(17) = A055642(5161) = 4, as 5161 is the longest common prefix of A096095(17)=5161310711827714 and A096095(18)=51618211410616387511.
PROG
(Haskell)
import Data.List (inits, isPrefixOf)
a197945 n = length $ takeWhile (`isPrefixOf` (show $ a096095 $ n+1)) $
tail $ inits $ show $ a096095 n
CROSSREFS
Cf. A055642.
Sequence in context: A140715 A330690 A263143 * A374336 A099986 A166478
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Oct 19 2011
STATUS
approved