One way to look at this is to enumerate several sets.
Firstly, how many permutations of california contain aa and ii? Let's call that set $C$, and its size is $|C|$.
Secondly, how many contain aa? And how many ii? Let's call these sets $A$ and $I$.
Let's call the total number of permutations $U$. The set of permutations which contain no consecutive letters is therefore $U - A - I + C$. And so the number we are looking for is $|U| - |A| - |I| + |C|$.
We must add back $C$ because it's the overlapping area in the Venn diagram. That is to say, both set $A$ and set $I$ contain $C$, and so if we subtract them from $U$ via set difference, we end up subtracting $C$ twice. $A$ contains $C$ because the set of all permutations of california which contain aa includes all permutations that contain ii also, and that subset of $A$ corresponds to $C$.
Let's deal with set C:
This can be answered as: given an array of ten places, how many ways can we place the digraph aa and ii into that array? Each of these ways leaves six spaces, which we then fill with permutations of cflnor: the remaining letters in california. We multiply together these possibilities: that is to say $6!$ times the number of ways of filling those digraphs.
Now, there are 9 ways to place aa into the array, obviously. Out of these 9 ways, the edge placements aa........ and ........aa, support 7 ways of adding a ii. All 7 interior placements support 6 ways of introducing ii. So the possibilities are $2\times 7 + 7\times 6 = 56$.
Hence $|C| = 56\times 6! = 56\times 720 = 40320$.
Some diagrams:
Edge aa-fill:
aaii...... 1
aa.ii..... 2
aa..ii.... 3
aa...ii... 4
aa....ii.. 5
aa.....ii. 6
aa......ii 7
Interior aa-fill:
.aaii..... 1
.aa.ii.... 2
.aa..ii... 3
.aa...ii.. 4
.aa....ii. 5
.aa.....ii 6
iiaa...... 1
..aaii.... 2
..aa.ii... 3
..aa..ii.. 4
..aa...ii. 5
..aa....ii 6
Now let's deal with A and I. They are easy mirror cases. Basically, we have nine ways to place aa into ten spaces, leaving eight spaces, which we then fill with permutations of the remaining letters. Thus $|A| = 9\times 8! = 9! = 362880$ and also $|I| = 362880$.
Of course $|U| = 10! = 3628800$.
We can now calculate $|U| - |A| - |I| + |C| = 3628800 - 2\times 362880 + 40320 = 2943360$.
Oops: does not validate by machine:
$ txr -i
1> (count-if (notf (op search-regex @1 #/aa|ii/)) (perm "california"))
2338560
The correct answer is 2338560.
To be continued ...
(Math has cliffhangers too!)
And here is where I screwed up! In calculating the cardinalities $|C|$ and $|A| = |I|$, I assumed that there is only one distinct aa and ii: that both a-s are the same object. But in fact they are distinct: there are two aa digraphs and two ii digraphs (I'm dealing with permutations which need not be distinct). Therefore, set $|C|$ is actually four times larger, due the four combinations of digraphs, hence $4\times 56\times 720 = 161280$. Similarly, $|A|$ and $|I|$ are twice as large: $2\times 9!$. With these corrections, $|U| - |A| - |I| + |C| = 2338560$.
Now suppose we want to consider only distinct permutations, so that there is exactly one digraph aa and one digraph ii. The cardinality of the new $|U|$ is reduced by a factor of four, since strings that differ only in exchanges of one a with the other, and one i with the other are equivalent. It is $|U| = \frac{10!}{2} = 907200$. The original $|C| = 40320$ value is correct, since that calculation considered both i-s and a-s as indistinct. The correct $|A|$ calculation is $|A| = |I| = 9!\div 2 = 181440$: we must divide by two because the remaining letters after the digraph is positioned include two which are indistinct. And so $|U| - |A| - |I| + |C| = 907200 - 2\times 181440 + 40320 = 584640$.
Check by machine:
3> (count-if (notf (op search-regex @1 #/aa|ii/)) (uniq (perm "california")))
584640
So those are the answers: if the i-s and a-s are considered distinct, then $2338560$ permutations don't contain a digraph. If they are considered indistinct, then $584640$ permutations don't contain a digraph.