OFFSET
1,2
COMMENTS
Positions of 1 in A065881.
Numbers having 1 as rightmost nonzero digit in base 10. This is one sequence in a 10-way splitting of the positive integers; the other nine are indicated in the Mathematica program.
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10000
MAPLE
M:= 4: # to get all terms with <= M digits
A:= sort([seq(seq(10^d*(10*x+1), x=0..10^(M-1-d)-1), d=0..M-2)]); # Robert Israel, Nov 07 2016
MATHEMATICA
z = 460; a[b_] := Table[Mod[n/b^IntegerExponent[n, b], b], {n, 1, z}]
p[b_, d_] := Flatten[Position[a[b], d]]
p[10, 1] (* A277588 *)
p[10, 2] (* A277589 *)
p[10, 3] (* A277590 *)
p[10, 4] (* A277591 *)
p[10, 5] (* A277592 *)
p[10, 6] (* A277593 *)
p[10, 7] (* A277594 *)
p[10, 8] (* A277595 *)
p[10, 9] (* A277596 *)
f[n_] := Block[{m = n}, While[ Mod[m, 10] == 0, m /= 10]; Mod[m, 10]]; Flatten@ Position[ Array[f, 500], 1] (* Robert G. Wilson v, Nov 06 2016 *)
PROG
(PARI) is(n)=n && n/10^valuation(n, 10)%10==1 \\ Charles R Greathouse IV, Jan 31 2017
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Clark Kimberling, Nov 05 2016
STATUS
approved