OFFSET
1,2
COMMENTS
Definition of "being coprime" and special-case conventions are as in Wikipedia. In particular, when m < 10 then floor(m/10) = 0, and zero is coprime only to 1. The complementary sequence is A248500. Note: The first 57 terms a(n) coincide with A069715, but the two sequences are different.
The limit mean density of these numbers exists and equals 1223/2100 = A250031(10)/A250033(10). - Stanislav Sykora, Dec 08 2014
LINKS
Stanislav Sykora, Table of n, a(n) for n = 1..20000
Stanislav Sykora, On some number densities related to coprimes, Stan's Library, Vol. V, Nov 2014, DOI: 10.3247/SL5Math14.005.
Wikipedia, Coprime integers.
FORMULA
{ m : gcd(m, floor(m/10)) = 1 }.
EXAMPLE
1 is a term because gcd(1,0) = 1.
123 is not a term because gcd(123,12) = 3.
165 is a term because 165 and 16 are coprime.
MATHEMATICA
Select[ Range@ 120, GCD[#, Floor[#/10]] == 1 &] (* Robert G. Wilson v, Oct 22 2014 *)
PROG
(PARI) a=vector(20000);
i=n=0; while(i++, if(gcd(i, i\10)==1, a[n++]=i; if(n==#a, break))); a
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Stanislav Sykora, Oct 07 2014
STATUS
approved