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!)
A371182 Lexicographically earliest strictly increasing sequence of positive integers in which every triple of consecutive digits contains only one pair that is not coprime. 1
1, 2, 4, 5, 6, 8, 10, 21, 22, 32, 33, 42, 52, 54, 55, 62, 72, 74, 76, 77, 82, 92, 93, 100, 102, 103, 104, 105, 106, 107, 108, 109, 130, 133, 136, 139, 160, 162, 163, 164, 166, 168, 169, 190, 193, 196, 199, 221, 223, 225, 227, 229, 232, 233, 234, 238, 239, 241, 243, 245 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
pairwiseQ[a_, b_, c_]:=Sort[{CoprimeQ[a, b], CoprimeQ[b, c], CoprimeQ[a, c]}]=={False, True, True}; a[1]=1; a[2]=2; a[3]=4; a[4]=5; a[5]=6; a[6]=8; a[7]=10;
a[n_]:=a[n]=Module[{k=a[n-1]+1, digits},
While[digits=Join[Take[IntegerDigits[a[n-1]], -2], IntegerDigits[k]];
Union[ pairwiseQ@@@Table[{digits[[i]], digits[[i+1]], digits[[i+2]]},
{i, 1, Length[digits]-2}]]!={True}, k++]; k]; a/@Range[60]
CROSSREFS
Sequence in context: A362942 A069872 A216163 * A093080 A059916 A099747
KEYWORD
nonn,base
AUTHOR
Ivan N. Ianakiev, Mar 14 2024
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 9 13:53 EDT 2024. Contains 375042 sequences. (Running on oeis4.)