login

Revision History for A332677

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
a(n) is the number of ways n can be obtained by adding some digit of a number k to k.
(history; published version)
#7 by Alois P. Heinz at Wed Feb 19 11:24:30 EST 2020
STATUS

proposed

approved

#6 by Michel Marcus at Wed Feb 19 10:52:30 EST 2020
STATUS

editing

proposed

#5 by Michel Marcus at Wed Feb 19 10:52:06 EST 2020
MATHEMATICA

a[n_] := Sum[ Boole[ MemberQ[ IntegerDigits[t] + t, n]], {t, Max[0, n-9], n}]; Array[a, 88, 0]

n}]; Array[a, 88, 0]

STATUS

proposed

editing

#4 by Giovanni Resta at Wed Feb 19 10:50:21 EST 2020
STATUS

editing

proposed

#3 by Giovanni Resta at Wed Feb 19 10:50:13 EST 2020
CROSSREFS
#2 by Giovanni Resta at Wed Feb 19 10:45:39 EST 2020
NAME

allocated for Giovanni Restaa(n) is the number of ways n can be obtained by adding some digit of a number k to k.

DATA

1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 0, 3, 1, 2, 1, 3, 1, 3, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 3, 1, 3, 0, 3, 1, 3, 1, 2, 1, 3, 1, 3, 1, 2, 1, 3, 1, 3, 1, 2, 1, 3, 1, 3, 0, 3, 1, 3, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 3, 1, 3, 1, 2, 1, 3, 0

OFFSET

0,11

COMMENTS

By definition terms cannot exceed 10. The values from 0 to 10 are obtained the first time with n = 1, 0, 10, 14, 102, 104, 1206, 12406, 124506, 1245606, and 12456806, respectively.

REFERENCES

Eric Angelini, Posting to Sequence Fans Mailing List, Apr 20 2014.

EXAMPLE

a(102) = 4 because 102 can written as 93+9, 96+6, 101+1, and 102+0.

MATHEMATICA

a[n_] := Sum[ Boole[ MemberQ[ IntegerDigits[t] + t, n]], {t, Max[0, n-9],

n}]; Array[a, 88, 0]

CROSSREFS
KEYWORD

allocated

nonn,base,easy

AUTHOR

Giovanni Resta, Feb 19 2020

STATUS

approved

editing

Discussion
Wed Feb 19
10:48
Giovanni Resta: I create this sequence because it seems to me that sequences A241175, A241176, A241177, A241178 implicitly list values for which a(k) = 0 (resp, 1, 2, 3, 4) but this sequence is not in OEIS (unless I'm missing something...)
#1 by Giovanni Resta at Wed Feb 19 10:45:39 EST 2020
NAME

allocated for Giovanni Resta

KEYWORD

allocated

STATUS

approved